|
|
Virtual Host Proxy Server |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
The program I'm submitting today is aimed at solving a problem that sounds simple but appears to be next to impossible: running multiple Web servers on a single Windows 95/98 machine. If you are running NT, you can assign multiple IP addresses to your networks card, edit the hosts file to translate domain names into IP addresses and assign multiple Websites to Internet Information Server...
It's a bit tricky but feasible. If you're running Windows 95 or 98, it's virtually impossible so I had to find a way around that.
What I've done is write a very simple proxy server that translate server names into a sub folder of your local machine so your can host as many Websites as you want with one single HTTP server.
我在这里提交的代码用于解决一个听起来容易,但实际上很难实现的问题:在一个单独的 Windows 95/98 机器上运行多个Web服务器。如果你在NT上运行,可以为你的网卡分配多个IP地址,编辑主机文件来将域名转换为IP地址,分配多个Web站点到Internet Information Server...
这是一种有些麻烦,但灵活的办法。如果你在Windows 95 或 98中运行,这种方法实际上是不可能的,所以我必须找到另一种方法。
我编写了一个非常简单的代理服务器,它将服务器名转换为一个本地机器上的子目录,这样你可能在一个单独的HTTP服务器上容纳任意多个Web站点了。
来源: http://www.codeguru.com/internet/virtualhostproxy.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Working with the TIFF Images |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
Tag Image File Format (TIFF) files are used for a diverse set of applications such as GIS (geographic information systems), CAD drawing programs, etc... Fortunately for programmers like us, a portable and easy to use library is freely available, from www.libtiff.org, for decoding the information stored in TIFF files.
This article outlines and provides an implementation of a simple approach that will allow you to include support for TIFF files in your applications with a few library calls.
TIFF图像
标签图像文件格式(TIFF)文件被用作一个不同的应用程序,如GIS(地理信息系统),CAD画图程序等。。。对一些像我一样的程序员感到幸运的是, 解析保存在TIFF文件,来自于www.libtiff.org的一个简单方便的类库是免费的。
这一个文章概略说明并且提供一个简单执行途径,那样将会允许你通过一些类库的调用,在你的应用程序中获得包括TIFF文件支持。
来源: http://www.codeguru.com/bitmap/tiff_image.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Customizing the Common Find/Replace Dial |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
This article explains how to customize the standard Find/Replace Dialog in RichEdit view.
这个项目演示了如何在RichEdit 视图中定制标准的Find/Replace对话框。
来源: http://www.codeguru.com/richedit/RichEditFind.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Programmatically Create Dialup Connectio |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
CRasAbsLay is a simple class that encapsulates the functionality that you need from RAS to be able to create dialup connections in your Dialup connection folder. You cannot assume that all the machines have the RAS services available and you cannot link the RAS API library statically to your application, that's the reason why use the object CRas instead of calling the API directly.
CRasAbsLay 是一个简单的类,封装了来自RAS的函数,可以在你的拨号连接文件夹中创建拨号连接。你不能假设有RAS服务的机子可以使用,也不能静态地链接 RAS API库到你的应用程序,这就是为什么使用CRas 来取代直接API调用的原因。
来源: http://www.codeguru.com/internet/rasabslay.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Using DirectDraw in Document/View Archit |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
I was working on some design for Galloping Ghost Productions when I discovered there is a way to integrate a DirectDraw interface into Document/View architecture. People might ask, why add an DirectDraw interface into the view object when a full-screen DirectDraw application can be done? Yes, doing a windowed DirectDraw application is not as cool as doing a full-screen hardcore DirectDraw application. However, you have some advantages when designing a windowed application:
在文档/视图结构中使用DirectDraw
当我发现有一个整合DirectDraw接口到文档/视图结构的时候,我正从事Galloping Ghost产品的设计工作。人们可能要问,当一个全屏幕 DirectDraw应用程序可以做到的时候,为什么加载一个DirectDraw接口到文档/视图结构呢?然而, 当你设计一个窗口应用程序的时候,你会有一些优势:
调试更简单。
它可以创建一个接口来使用DirectShow接口。
DirectDraw和Direct3D可以用来设计窗口游戏。 KOEI的 "三个王国的浪漫史"就使用了窗口应用程序。
来源: http://www.codeguru.com/directx/ddraw_in_mfcwin.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Selecting a client certificate |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
This article covers the basics of selecting a client certificate for use within WinInet.
这个项目涉及在WinInet内选择一个客户端证书。
来源: http://www.codeguru.com/internet/client_cert.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
CxImageMNG - A class to read MNG, JNG an |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
CxImageMNG is the module of CxImage used to play MNG animations. It uses the CxImage members, but to play the animation are necessary additional variables and functions. I decided to keep separated the MNG stuff from the "static" formats, to limit the growth of the base class due to the new features.
CxImageMNG- 一个读取MNG,JNG和PNG图像的类
CxImageMNG是CxImage的模块,过去一直用来显示MNG 动画。它使用CxImage成员函数,但是显示动画必须额外的变量和函数。由于新的特征,我决定保持MNG材料和静态格式的分离来限制基类的增长。
来源: http://www.codeguru.com/bitmap/cximagemng.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
RichEdit Overlay (non-MFC) |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
This snippet demonstrates how to make a RichEdit control transparent -- so that the text draws over top of the contents of the parent window (or even a memory DC). Best of all, it should work all the way back to Win95 / NT 3.1 and only relies on the Win32 APIs.
这个代码段演示了如何生成一个透明的RichEdit 控件--所以文本会绘制到父窗口(甚至是一个内存DC)中。它应该也可以在Win95 / NT 3.1中运行,只使用了 Win32 API。
来源: http://www.codeguru.com/richedit/Overlay.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Speeding Up Internet Browsing |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
A lot of Web pages today have become riddled with URL references to other Web sites and things slow down waiting for them to complete. Some are legitimate references to pictures and other necessary pages. There are also a lot of connections made for advertisements and Web tracking. If we could somehow filter out these references, the browsing speed for some Web sites might improve. I wondered what all of these were. I used Microsoft's Netmon 2.0 (a fantastic network monitoring/learning tool) to watch packets as I browsed the network and noticed the host name DNS lookup for a lot of these URLs. This was still an impractical way to look for this activity.
加速Internet浏览
现在的许多Web页面由于向其它站点的URL引用而增加了其完成的时间。一些是合法的对图片的引用,一些是必要的页面。也有许多广告和Web跟踪的链接。如果我们可以过滤掉这些链接,浏览Web站点的速度将会巨大增加。我研究了这个问题,使用Microsoft's Netmon 2.0 ( 一个非常好的网络监视/监听工具)来检查我浏览网络的包,以及许多这些URL链接的主机名DNS查询。这仍旧是查询这一活动的主要方法。
来源: http://www.codeguru.com/internet/DNSWatch.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
StackUp V1.0 - the DirectX game |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
StackUp is an old logical 2D game. First I saw it on C-64 and   I very enjoyed it (2D games are my favourites). I programmed it on Amiga (assembler / hardware chipsets addressing) few years ago. I think that C++ / DirectX / MFC is one of the easiest and fastest ways to do this game.
StackUp V1。0- DirectX游戏
StackUp是一个老的逻辑2维游戏。第一次我在C-64 上发响了它,并且喜欢上了它(2游戏是我的最爱)。 几年前我在Amiga(汇编/硬盘芯片组寻址)上编程实现了它。我认为C++ / DirectX / MFC 是做这个游戏最简单的方法之一。
来源: http://www.codeguru.com/samples/stackup.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
|
|
|