   BindIoCompletionCallback()
  Ok I''m having some problems here. MSVC isn''t finding BindIoCompletionCallback() at all. I have kernel32 included AND I''m using the XP distro of windows. Can you see if this compiles for you guys?   #define _WIN32_WINNT 0x0500#include <windows.h>#include <winsock2.h>#include <stdio.h>void CALLBACK DoneIO(DWORD dwErrorCode, DWORD dwNumberOfBytesTransferred, LPOVERLAPPED lpOverlapped){printf("Received Callback HOORAY!");return;}int main(){int i, listener;WSADATA wd = {0};WSAStartup(MAKEWORD(2, 0), &wd);SOCKADDR_IN addr;listener = socket(AF_INET, SOCK_STREAM, 0);addr.sin_family = AF_INET;addr.sin_addr.s_addr = INADDR_ANY;addr.sin_port = htons((short)2004);bind(listener, (SOCKADDR *)&addr, sizeof(addr));listen(listener, 200);BindIoCompletionCallback((HANDLE)listener, DoneIO, 0);while (1){}//return 0;}------------------------------------------------------------Timothy Barnes | War Charity | 2003.
  do you link with wsock32.lib?the code compiles fine for me   Edit: and you should either define WIN32_LEAN_AND_MEAN before the includes or change the order of your inclusions to have windows.h after winsock2.h, else you'll be including the old winsock.h from windows.h, which could also lead to errors [edited by - Burning_Ice on August 2, 2003 7:00:16 AM];  Do you have any serveice packst instsalled? ;  --------------------Configuration: bindiotest - Win32 Debug--------------------Compiling...main.cppc:\program files\microsoft visual studio\myprojects\bindiotest\main.cpp(35) : error C2065: ''BindIoCompletionCallback'' : undeclared identifierError executing cl.exe.bindiotest.exe - 1 error(s), 0 warning(s) ------------------------------------------------------------Timothy Barnes | War Charity | 2003.;  can yous email ewinbase.h to me? god@gdnamilent god@Qgdnmai.net god@gdnmail.ent tjhere ;  ok done  ;  Ok bindiocompletioncallback is in there but now i have a slight dilemma. The new winbase.h file doesn''t work with the rest of my stuff...Did you install service packages or something? How did you get that version of winbase.h   ------------------------------------------------------------Timothy Barnes | War Charity | 2003.;  it''s the one that came with VS .Net2003. It''s in the platform sdk folder, so you might want to d/l the latest sdk if if it doesn''t work with the rest of your stuff   