一个 Win32工程,#include 后编译出错,请高手指教!
cdy81 2008-10-30 03:10:37 #include "stdafx.h"
#include <wlanapi.h>
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
return 0;
}
以上一个 Win32工程,#include <wlanapi.h>后编译出错,请高手指教!
c:\program files\microsoft sdks\windows\v6.1\include\l2cmn.h(86) : error C2061: syntax error : identifier 'dwDataSize'
c:\program files\microsoft sdks\windows\v6.1\include\l2cmn.h(86) : error C2146: syntax error : missing ';' before identifier 'PVOID'
c:\program files\microsoft sdks\windows\v6.1\include\wlantypes.h(27) : error C2059: syntax error : 'constant'
c:\program files\microsoft sdks\windows\v6.1\include\wlantypes.h(29) : error C2146: syntax error : missing ';' before identifier 'ULONG'
c:\program files\microsoft sdks\windows\v6.1\include\windot11.h(39) : error C2146: syntax error : missing ';' before identifier 'Header'
c:\program files\microsoft sdks\windows\v6.1\include\windot11.h(39) : error C2501: 'NDIS_OBJECT_HEADER' : missing storage-class or type specifiers
c:\program files\microsoft sdks\windows\v6.1\include\windot11.h(39) : error C2501: 'Header' : missing storage-class or type specifiers
c:\program files\microsoft sdks\windows\v6.1\include\windot11.h(71) : error C2059: syntax error : 'constant'