|
|
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) |
|
Listener and Client Sockets/Remote Progr |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
There are two applications I'm submitting here: SockCommander (SC) and SockListener (SL). SL acts as the server and listens on port 777. This application must be run on that PC which you intend to control (well... in a way). Take down the IP address shown there and then execute SC on that PC from where you intend to control the server. Enter the IP address you got from the server in the relevant edit box in SC and press Connect. If successful, a message will be displayed both on SC and SL, saying 'Connected'.
我在这里提交了两个用户程序: SockCommander (SC) 和 SockListener (SL)。SL作为服务器,监听777端口。这个应用程序必须在你需要控制的机子上运行。输入IP地址,从你需要控件服务器的PC上运行SC。输入你从SC的相关编辑框中得到的服务器的IP,按"connect"。如果成功,将会在SC和SL上显示一个消息,说“已经连接”。
来源: http://www.codeguru.com/internet/PB_Sockets.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Placing Logo on the Top DockBar of the F |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
Some time ago I participated in a project. We had to place our logo at some place in the right top corner of the frame window. I decided to place it on the top dockbar and created CLogo class for this purpose. This class is used for handling logo's location, tooltips and the message line in the status bar. Logo positions itself in the top right corner within parent dockbar. If the logo intersects with any toolbar then CLogo hides and otherwise it becomes visible. CLogo uses a string resource with the integer identifier of the logo window for displaying tooltips and the message line in the status bar. Besides, CLogo sends ON_LOGO_CLICK registered window message to the application main window when a user clicks on the logo window.
在框架窗口的Top DockBar里添加一个标志
不久前我参加了一个项目。我们不得不在框架窗口的右上角的某出添加标志。因此,我在Top DockBar里添加了一个标志并且创建了一个类CLogo.这个类用来在状态栏上显示标志的位置,工具提示及信息。Logo positions itself in the top right corner within parent dockbar.如果这个标志和任何的工具栏冲突,那么类CLogo将会隐藏,反之则会显示。类CLogo定义了一个字符串和一个整数来在状态栏上显示工具提示和信息。另外,当用户单击标志窗口时,类CLogo发送一个ON_LOGO_CLICK的注册信息给主窗体。
来源: http://www.codeguru.com/toolbar/LogoDemo.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Class for simple MAPI email |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
I needed the ability to create and send email from within my application (it's an online trivia game called MindProbe). After messing around with the various OCX based solutions available I settled on a cut and paste of the code embedded deep within CDocument to access MAPI. I changed things a lot and abstracted it into it's own class. This class handles multiple attached files as well as multiple recipients and multiple cc recipients.
我需要在我的应用程序中可以创建和发送电子邮件(它是一个在线的小游戏,称为MindProbe)。在参考了各种基于OCX的解决方案后,我提取了CDocument 中的一段代码来访问MAPI。我做了修改,将它吸收到我的自己的类中。这个类可以处理多个附件,以及多个收件人和多CC收件人
来源: http://www.codeguru.com/internet/imapi.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
ColorFinder Retrieve the Color of Any Pi |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
When developing Web pages or graphics, we frequently need a tool that will give us the RGB value of the color of a particular region in some other application\'s window. An example could be that you need to know the background color of a JPG image so that you can use the same color for the background of the Web page on which you will display the image. ColorFinder comes in handy exactly for this. You can use this tool to pick the color from any pixel on the Desktop.
ColorFinder —取回在桌面上的任何像素的颜色
当开发网页或图形的时候,我们时常需要一个工具来获取其它应用程序窗口的特定区域的RGB色值。例如可能是你需要知道一个JPG图像的背景颜色,以便你能使用相同的颜色作为你将会显示图像的网页背景。 ColorFinder可以做到这一点。你能使用这一个工具获得来自在桌面上的任何像素的颜色。
来源: http://www.codeguru.com/bitmap/ColorFinder.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
DirectX 7 Template |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
The aim of this project is to provide a simple framework to get people started with 3D programming. This project only sets out to initialise DirectX and place the developer in the position where they can concentrate on what they want to do and not on messing about with Microsoft's DirectX code.
DirectX 7 模板
这个工程的目标是为开始写3D程序的人们提供一个简单的框架。这个工程仅仅设定用来初始化directx并且可以把开发者置于一个他们可以集中注意力于他们想要做的事情上而不至于和microsoft的directx代码相混淆。
来源: http://www.codeguru.com/directx/DirectXSeven.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Download a File Using URLDownloadToCache |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
You can use WinInet to download a file from the Internet. But the easier way is to use the ::URLDownloadToCacheFile or ::URLDownloadToFile functions. The URL functions combine the capabilities of asynchronous monikers and URL monikers into easy-to-use functions. By using these functions, you do not have to worry about the protocols used to transfer the files, such as HTTP, FTP. In the simplest case, all you have to do is to pass them the URL.
你可以使用WinInet 从Internet下载文件。但最容易的办法是使用::URLDownloadToCacheFile or ::URLDownloadToFile 函数。这些URL函数将异步别名和URL别名的功能组合到易于使用的函数中。通过使用这些函数,你不必再担心传输文件使用的协议,如HTTP或FTP。在最简单的情况下,只需要传递URL。
来源: http://www.codeguru.com/internet/urlfile.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Edit: Rich Text Editor |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
Its features are: Font, Font Size, Paragraph alignment, Bold, Italic, Underline, Strikeout, Date & Time, A taskbar, bullets & numbering, font color & hilite color, subscript & superscript, indentation, case changeing, and more.
这是一个Rich Text编辑器,它的功能有:字体、字体大小,段落对齐,粗体,斜体,下划线,删除线,日期和时间,一个任务条,字符和数字,字体颜色和标题颜色,下标和上标,缩进,大小写转换,等等。
来源: http://www.codeguru.com/richedit/Edit.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
|
|
|