|
|
Direct Input 7 Joystick Class |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
DirectX isn't the most friendly of API's available, so here's a simple class that you can use to utilise DirectX7 for multiple Joystick Control.
Direct Input 7 游戏手柄类
DirectX不是API可用的中最好的,这里有一个类,你能使用它来利用DirectX7实现多个游戏手柄控制。
来源: http://www.codeguru.com/directx/joystick.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Loading Simple HTML Pages From Memory |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
Sometimes,when you use web browser control, it's not suitable to work with temporary files as a source for browser navigation. For example, if you want secure information or you need dynamically change content from c++ program.
CMoreHtml class derived from standard MFC-class CHtmlView and fully keeps class functionality. Additionally you will have some more abilities to work with html content. This class use standard COM interfaces IWebBrowser2, IHtmlDocument2. Moreover in this application uses IMarkupServices interface it force to minimum capability with IE 5.0.
有时,当使用Web浏览器控件时,将临时文件作为浏览器的源文件不合适。例如,如果你需要安全信息或想从C++程序中动态修改环境。CMoreHtml 类派生于标准的MFC-类CHtmlView ,完全保存了类的功能。此外你有功能的功能来处理HTML内容。这个类使用了标准的COM接口 IWebBrowser2, IHtmlDocument2。但是在这个应用程序中使用了IMarkupServices 接口,实现了IE 5.0最小功能。
来源: http://www.codeguru.com/ieprogram/HtmlMemory.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Easy Way to Set the LOGFONT Structure |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
To set the new font for a window or control a CFont object is often used. In order to use this object a LOGFONT structure must be passed to it to create the font object in memory.
设置LOGFONT结构的简单的方法
为一个窗囗或控件设定新的字型时,CFont对象通常被用到。为了使用这个对象,必须传递一个LOGFONT 结构来在内存中创建字型对象。
来源: http://www.codeguru.com/gdi/GetF.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Asynchronous full-duplex connection clas |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
CInOutConnection is a class that encapsulates Client/Server connection node. It works in asynchronous full-duplex mode. After initialization it creates four threads: receiving, sending, working and service threads. First two are obvious, working thread waits for a message to be posted into input queue and then processes it and service thread could break connection on inactivity timeout or could be used for performing idle periodic tasks.
CInOutConnection 这个类封装了 Client/Server连接节点。这在异步全双工模式下运行。在初始化后,它创建四个线程:接收、发送、工作和服务线程。前两个很明显,工作线程等候发送到队列中的消息并处理它,服务线程可以在连接超时后中断连接,也可以用于执行空闲任务。
来源: http://www.codeguru.com/internet/async_full_duplex.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Direct Input 7 Keyboard Class |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
DirectInput is essential for responsive games, therefore to help ease the transition of DOS games programmers, you can use this class to read the keyboard direct trapping input before Windows starts performing it translation functions.
Direct Input 7 键盘类
DirectInput对响应游戏是必要的,可以帮助减轻DOS 游戏程序设计者的过渡,你可以在Windows开始操作转换功能之前使用这个类读出键盘直接输入。
来源: http://www.codeguru.com/directx/DxKbd.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Connecting to a running instance of Inte |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
There are some methods to connect to a running instance of IE. This one is how to connect through the ROT (Running Object Table).
Usually, an application connects to a running instance of another application using the Running Object table. However the Internet Explorer 4.0 doesn't not register itself in ROT. The solution is to write so-called "Browser Helper Object" – a tiny COM object that exposes IObjectWithSite interface and register itself in the ROT.
有许多方法可以连接到IE的运行实例。一种方法是通过ROT(Running Object Table).
通常应用程序使用运行对象表来连接到另一个应用程序的运行实例。然而,Internet Explorer 4.0没有在ROT中注册自己。解决办法是编写所谓的"Browser Helper Object" –一个小COM对象,用于在ROT中提供IObjectWithSite 接口并注册。
来源: http://www.codeguru.com/ieprogram/connect2IE4.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Creating Pattern Brushes |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
Often, in developing PageMaker- and CAD-related applications, one needs the functionality of filling interiors of rectangles, ellipses, polygons, and paths such as objects. This article introduces how to fill rectangles. This article also includes how to create our own brush style.
创建模式刷
通常,在开发PageMaker和CAD相关的应用程序的时候,需要填充矩形,椭圆,多边形和对象的路径。 这篇文章介绍该如何填充矩形。这篇文章也包括该如何创建我们自己的画刷风格。
来源: http://www.codeguru.com/gdi/CustomBrush.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Winsock2 Internet functions |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
This class is a mixture of Les Jordan class(address resolution functions) and SDK ping example.
You must make sure that WS2_32.DLL and WS2_32.LIB is present on your system(NT4.0 with service pack 3 normally should have this dll on the system, I didn't see on the Windows 95, but Microsoft claims that it is available for 95 as well).
这个类是Les Jordan的类(地址解析函数)和SDK pint例子的混合。
你必须确保系统中提供了WS2_32.DLL 和 WS2_32.LIB (NT4.0 SP3通常应该有这个DLL,在Windows 95没有,但Microsoft 声明它也可以在95下运行)。
来源: http://www.codeguru.com/internet/InterFunc.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Direct Input 8 Wrapper |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
Use this class to setup and handle input from keyboard, mouse, and one joystick.
Instructions(DI only):
Derive a class from CDirectInput8
Override the input processing functions for each device used: HRESULT ProcessMouse(); HRESULT ProcessKB(); HRESULT ProcessJoy();(Don't forget to call base function at the beginning of each function.)
Call "InitDI(HWND hWnd, HINSTANCE hInstance, DWORD ToUse)"
The "ToUse" can take any combination of "USEMOUSE", "USEKEYBOARD", "USEJOYSTICK" flags depending on what devices you want to use
Direct Input 8 Wrapper
使用这个类配置和处理来自键盘,鼠标和游戏手柄的输入
介绍(DI only):
从CDirectInput8继承一个类
Override每个装置输入处理函数: HRESULT ProcessMouse();HRESULT ProcessKB();HRESULT ProcessJoy();(每个函数的开始不要忘记调用基函数.)
调用"InitDI"(HWND hWnd , HINSTANCE hInstance,DWORD ToUse)
"ToUse" 可以是 "USEMOUSE","USEKEYBOARD"标志的任何组合,它你想使用什么装置
来源: http://www.codeguru.com/directx/DirectInput8Wrapper.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Net Tools |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
The NETTOOLS project is an example of how to interface with Microsoft’s ICMP.DLL and INETMIB.DLL. These somewhat documented DLL’s are supplied by Microsoft to allow MS’s DOS programs PING, TRACERT and NETSTAT access to the low-level IP header and MIB information. Since MS’s Winsock implementation does not support RAW sockets they had to create this API For themselves.
这个项目演示了如何与Microsoft的ICMP.DLL 和 INETMIB.DLL交互。由Microsoft 提供的有关这些DLL的文档可以让MS的DOS程序 PING, TRACERT 和 NETSTAT访问低级的IP报头和MIB信息。由于MS实现的Winsock 不支持RAW socket,他们必须自己创建这个API。
来源: http://www.codeguru.com/internet/nettools.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
|
|
|