stdafx.cpp
d:\vs\vc\platformsdk\include\winnt.h(225) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
d:\vs\vc\platformsdk\include\winnt.h(225) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\vs\vc\platformsdk\include\winnt.h(5943) : error C2146: syntax error : missing ';' before identifier 'Buffer'
d:\vs\vc\platformsdk\include\winnt.h(5943) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\vs\vc\platformsdk\include\winnt.h(5943) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
从2003迁移到2005,原本正确的工程出现这个,谁能告诉我这个是为什么?如何解决?
d:\vs\vc\platformsdk\include\winnt.h(225) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
d:\vs\vc\platformsdk\include\winnt.h(225) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\vs\vc\platformsdk\include\winnt.h(5943) : error C2146: syntax error : missing ';' before identifier 'Buffer'
d:\vs\vc\platformsdk\include\winnt.h(5943) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\vs\vc\platformsdk\include\winnt.h(5943) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
从2003迁移到2005,原本正确的工程出现这个,谁能告诉我这个是为什么?如何解决?
解决方案 »
- InitInstance()函数能被其他函数调用吗???
- 虚拟键码一般用在那里,不是有WM_CHAR wParam吗
- 各位高手快来帮帮忙!!
- 还是高分问题!急~~!对话框问题!如何得到对话框中的闪烁的编辑光标在屏幕上的位置?
- 请问如何检测一个已经在监听的SOCKET有连接请求?
- ADO连接数据库,怎么导入/导出文本文件?
- (救命)断电后.dsw打不开了怎么办?
- !!!!!有关加密算法->请进。。。
- 我出300块买日剧《一封长篇情书飘落教室》又名A LONG LETTER
- 求,开源3D引擎。
- 请问IRunningObjectTable::Register 的参数是代表什么?
- 请问如何在一个自制的文件目录浏览框中,添加一个系统的右键菜单
或者是点击一下Bulid框中的错误,按F1 看MSDN帮助
typedef struct value_entW {
LPWSTR ve_valuename;
DWORD ve_valuelen;
DWORD_PTR ve_valueptr;
DWORD ve_type;
}VALENTW, FAR *PVALENTW;
#ifdef UNICODE
typedef VALENTW VALENT;
typedef PVALENTW PVALENT;
#else
typedef VALENTA VALENT;
typedef PVALENTA PVALENT;
#endif // UNICODE#endif // not(_PROVIDER_STRUCTS_DEFINED)
/*INC*/#endif /* WINVER >= 0x0400 *///
// Default values for parameters that do not exist in the Win 3.1
// compatible APIs.
//#define WIN31_CLASS NULL//
// API Prototypes.
//
WINADVAPI
LONG
APIENTRY
RegCloseKey (IN HKEY hKey );WINADVAPI
LONG
APIENTRY
RegOverridePredefKey (
IN HKEY hKey,
IN HKEY hNewHKey
);WINADVAPI
LONG
APIENTRY
RegOpenUserClassesRoot(
HANDLE hToken,
DWORD dwOptions,
REGSAM samDesired,
PHKEY phkResult
);WINADVAPI
LONG
APIENTRY
RegOpenCurrentUser(
REGSAM samDesired,
PHKEY phkResult
);WINADVAPI
LONG
APIENTRY
RegDisablePredefinedCache(
);WINADVAPI
LONG
APIENTRY
RegConnectRegistryA (
IN LPCSTR lpMachineName,
IN HKEY hKey,
OUT PHKEY phkResult
);
WINADVAPI
LONG
APIENTRY
RegConnectRegistryW (
IN LPCWSTR lpMachineName,
IN HKEY hKey,
OUT PHKEY phkResult
);
#ifdef UNICODE
#define RegConnectRegistry RegConnectRegistryW
#else
#define RegConnectRegistry RegConnectRegistryA
#endif // !UNICODEWINADVAPI
LONG
APIENTRY
RegCreateKeyA (
IN HKEY hKey,
IN LPCSTR lpSubKey,
OUT PHKEY phkResult
);
WINADVAPI
LONG
APIENTRY
RegCreateKeyW (
IN HKEY hKey,
IN LPCWSTR lpSubKey,
OUT PHKEY phkResult
);
#ifdef UNICODE
#define RegCreateKey RegCreateKeyW
#else
#define RegCreateKey RegCreateKeyA
#endif // !UNICODE错误是:
F:\WINDDK\2600.1106\INC\WXP\winreg.h(107) : error C2146: syntax error : missing ';' before identifier 've_valueptr'
F:\WINDDK\2600.1106\INC\WXP\winreg.h(107) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
F:\WINDDK\2600.1106\INC\WXP\winreg.h(107) : error C2501: 've_valueptr' : missing storage-class or type specifiers
F:\WINDDK\2600.1106\INC\WXP\winreg.h(113) : error C2146: syntax error : missing ';' before identifier 've_valueptr'
F:\WINDDK\2600.1106\INC\WXP\winreg.h(113) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
F:\WINDDK\2600.1106\INC\WXP\winreg.h(113) : error C2501: 've_valueptr' : missing storage-class or type specifiers
F:\WINDDK\2600.1106\INC\WXP\winreg.h(144) : error C2065: 'HKEY' : undeclared identifier
F:\WINDDK\2600.1106\INC\WXP\winreg.h(144) : error C2146: syntax error : missing ')' before identifier 'hKey'F:\WINDDK\2600.1106\INC\WXP\winreg.h(556) : fatal error C1003: error count exceeds 100; stopping compilation
执行 cl.exe 时出错.usbhost.exe - 1 error(s), 0 warning(s)