#include <stdio.h>
#include <windows.h>
#include "WINCRYPT.H"void main(void)
{
HCRYPTPROV hCryptProv;
}-------------------------------------------------------------------------
上面的简单的代码都编译不通过,错误如下:(已经装了SDK)
--------------------Configuration: ccccc - Win32 Debug--------------------
Compiling...
ccccc.cpp
E:\product\vc\temp\ccccc\ccccc.cpp(7) : error C2065: 'HCRYPTPROV' : undeclared identifier
E:\product\vc\temp\ccccc\ccccc.cpp(7) : error C2146: syntax error : missing ';' before identifier 'hCryptProv'
E:\product\vc\temp\ccccc\ccccc.cpp(7) : error C2065: 'hCryptProv' : undeclared identifier
Error executing cl.exe.
Creating browse info file...ccccc.exe - 3 error(s), 0 warning(s)