读书人

为什么小弟我#include lt;Wincrypt.hgt;了

发布时间: 2012-01-29 21:39:32 作者: rapoo

为什么我#include <Wincrypt.h>了,仍然不能使用DATA_BLOB
#include <Wincrypt.h>
...
DATA_BLOB blobIn;
...

然后编译之,出现这样的错误提示:error C2065: 'DATA_BLOB ' : undeclared identifier

怎么回事啊?怎搞?

[解决办法]
C2065: ' <data-member name> ' : undeclared identifier

If this error occurs in one of your member functions then it is generally the result of forgetting the class scope operator in front of the function name in your .cpp file.


[解决办法]
会不会Include放的地方不对?
[解决办法]
typedef struct _CRYPTOAPI_BLOB {
DWORD cbData;
BYTE* pbData;
} DATA_BLOB, *PDATA_BLOB,
//如果你只想用这个DATA_BLOB的话,把这个加到你的头文件里算了
[解决办法]
有没有装Platform SDK?

读书人网 >VC/MFC

热点推荐