Winsock提供了另一個(gè)有用的異步I/O模型。和WSAAsyncSelect模型類似的是,它也允許應(yīng)用程序在一個(gè)或多個(gè)套接字上,接收以事件為 基礎(chǔ)的網(wǎng)絡(luò)事件通知。對于表1總結(jié)的、由WSAAsyncSelect模型采用的網(wǎng)絡(luò)事件來說,它們均可原封不動地移植到新模型。在用新模型 開發(fā)的應(yīng)用程序中,也能接收和處理所有那些事件。該模型最主要的差別在于網(wǎng)絡(luò)事件會投遞至一個(gè)事件對象句柄,而非投遞至一個(gè)窗 口例程。(節(jié)選自《Windows網(wǎng)絡(luò)編程》第八章) 還是讓我們先看代碼然后進(jìn)行分析:
標(biāo)簽: WSAAsyncSelect Winsock 模型
上傳時(shí)間: 2014-01-19
上傳用戶:gxrui1991
Visual C++實(shí)現(xiàn)的基因遺傳算法庫源代碼以演示程序Free Source Code for Genetic algorithm 2008年05月21日 C++, Windows, Win32, Visual Studio, MFC, STL, Arch, Dev, Design 基因遺傳算法都是針對概率的,所以因?yàn)槠潆S機(jī)的本質(zhì),導(dǎo)致其結(jié)果可能是好的,也可能是壞的,于是我們就需要一個(gè)方法確認(rèn)這個(gè)解到底有多大的可用性。這是通過計(jì)算相似擬合度進(jìn)行衡量的。染色體Chromosomes代表了基因遺傳算法的結(jié)果。每次迭代,算法生成一個(gè)染色體,這些子孫染色體又會產(chǎn)生新的迭代……關(guān)鍵內(nèi)容 這個(gè)基因算法庫是用 Visual Studio 2005 編寫的程序,第一個(gè)使用 Microsoft C/C++ 編譯器,第二個(gè)使用Intel C++ 編譯器。 如果你希望在你的程序你使用它,有兩個(gè)辦法,1是直接引用 Genetic Algorithm Library 項(xiàng)目,然后編譯;2是添加GeneticAlgorithm.lib 靜態(tài)鏈接庫到項(xiàng)目中
標(biāo)簽: algorithm Genetic Windows Visual
上傳時(shí)間: 2016-09-22
上傳用戶:silenthink
This a simple database management system. It doesn t use any other code (i.e. ODBC, ADO, etc.) and has it s own database file format. I wrote it because I found the other DBMSs code too bulky and hard to debug. It s designed for small applications and I doubt it could handle anything on a large scale. A sample program included in the .zip shows how everything works. The database project is a library project, so you ll have to compile and link with the .lib file to get everything working. Pros: - You have the source code so you know exactly what it is doing - Database files are very small - Small and fast code Cons: - Can t handle large amounts of records (more than 65000ish) - Doesn t support SQL (you have to search the database by cycling through the records and testing them against your constraints) - Each database file can only have one table.
標(biāo)簽: i.e. management database simple
上傳時(shí)間: 2016-10-02
上傳用戶:851197153
蕃茄炸彈超人[ACT]I ve no Tomatoes 開放原始碼,45度視角,有點(diǎn)像炸彈超人, 你操作一個(gè)"蕃茄",在迷宮里炸敵人,這是跨平臺游戲。游戲目的很簡單,就是把對手炸了,至於為什么主角是蕃茄... 游戲本身是開源的,而且跨Windows/Linux/Mac,基於SDL,說起來SDL跨平臺的能力是很不錯(cuò)...雖然有些人不是很喜歡。游戲支援2人同時(shí)玩~
上傳時(shí)間: 2016-10-02
上傳用戶:我干你啊
This book shows you how to write programs that run under Microsoft Windows 98, Microsoft Windows NT 4.0, and Windows NT 5.0. These programs are written in the C programming language and use the native Windows application programming interfaces (APIs). As I ll discuss later in this chapter, this is not the only way to write programs that run under Windows. However, it is important to understand the Windows APIs regardless of what you eventually use to write your code.
標(biāo)簽: Microsoft Windows programs shows
上傳時(shí)間: 2013-12-13
上傳用戶:古谷仁美
本書是Windows程序設(shè)計(jì)領(lǐng)域的名著,涵蓋了Windows的最新版本Vista 以及Windows XP的最新內(nèi)容。書中全面深入地介紹了Windows的各種基本要素,如進(jìn)程、線程池、虛擬內(nèi)存、DLL、設(shè)備I/O和SEH 等,并列舉了大量應(yīng)用程序,精辟地分析了要素的使用方法。 本書適于各層次Windows編程人員閱讀。
標(biāo)簽: Windows 程序設(shè)計(jì)
上傳時(shí)間: 2013-12-19
上傳用戶:dongbaobao
windows驅(qū)動開發(fā)例子,可以在windows下操作硬件I/O。本例枚舉了主板里所有PCI設(shè)備。
標(biāo)簽: windows 驅(qū)動開發(fā)
上傳時(shí)間: 2016-12-06
上傳用戶:FreeSky
In this article, I will explain how to create UDP packets and then send them to a remote server through the Internet using WinPCap for Windows. The code has been tested to work with Windows XP SP2 and Vista SP1 on Linksys routers, and on Toshiba modems connected directly to the Internet. Please note that the code here is very minimalistic, and can be greatly expanded depending on your needs. The reason I use WinPCap in this article is that it solves the issue of Winsock for Windows (XP SP2 and above) not allowing raw UDP packets to be sent (in Linux, you can just use regular sockets). With WinPcap, it is possible to specify your own source IP and source hardware addresses in packets.
標(biāo)簽: article explain packets create
上傳時(shí)間: 2013-12-12
上傳用戶:x4587
PartiTekSDK.chm is for windows, Unix/Linux and WinCE/WinMobile platform. SDK_Manul_Symbian.pdf is for Sybian platform
標(biāo)簽: SDK_Manul_Symbian PartiTekSDK WinMobile platform
上傳時(shí)間: 2017-03-31
上傳用戶:wyc199288
one of video tool Skype only in windows mobile5.0 more than running, but my task is to let it run Skype in WINCE only in windows mobile5.0 more than running, but my task is to let it run in WINCE . Leave no stone unturned when I can not get windows mobile, they thought would be needed for skype all library files to my WINCE, so perhaps will be able to run skype. 1. Used depend Show skype depends on which files. In fact, not many documents, I can remember only under the following: core.dllcommctr.dllaygeshell.dllhtmlview.dll In addition to htmlview.dll, the other documents in WINCE have (if your system does not, please IMAGE Canada on the corresponding module). Therefore, I find on the Internet htmlview.dll, the results really find
標(biāo)簽: running windows mobile Skype
上傳時(shí)間: 2014-01-17
上傳用戶:miaochun888
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1