http://www.codeproject.com/internet/wininet_ssl___certificate.asp
下载了源码,为什么编译会出现下面错误,如何修改?--------------------Configuration: SSLConnection - Win32 Debug--------------------
Compiling...
SSLCon.cpp
e:\documents and settings\aj\桌面\temp\sslcon.h(46) : error C2146: syntax error : missing ';' before identifier 'FindCertWithOUNITName'
e:\documents and settings\aj\桌面\temp\sslcon.h(46) : error C2501: 'PCCERT_CONTEXT' : missing storage-class or type specifiers
e:\documents and settings\aj\桌面\temp\sslcon.h(60) : error C2146: syntax error : missing ';' before identifier 'm_hStore'
e:\documents and settings\aj\桌面\temp\sslcon.h(60) : error C2501: 'HCERTSTORE' : missing storage-class or type specifiers
e:\documents and settings\aj\桌面\temp\sslcon.h(60) : error C2501: 'm_hStore' : missing storage-class or type specifiers
e:\documents and settings\aj\桌面\temp\sslcon.h(61) : error C2146: syntax error : missing ';' before identifier 'm_pContext'
e:\documents and settings\aj\桌面\temp\sslcon.h(61) : error C2501: 'PCCERT_CONTEXT' : missing storage-class or type specifiers
e:\documents and settings\aj\桌面\temp\sslcon.h(61) : error C2501: 'm_pContext' : missing storage-class or type specifiers
E:\Documents and Settings\aj\桌面\temp\SSLCon.cpp(17) : error C2065: 'm_hStore' : undeclared identifier
E:\Documents and Settings\aj\桌面\temp\SSLCon.cpp(19) : error C2065: 'm_pContext' : undeclared identifier
E:\Documents and Settings\aj\桌面\temp\SSLCon.cpp(130) : error C2065: 'CertFreeCertificateContext' : undeclared identifier
E:\Documents and Settings\aj\桌面\temp\SSLCon.cpp(134) : error C2065: 'CertCloseStore' : undeclared identifier
E:\Documents and Settings\aj\桌面\temp\SSLCon.cpp(134) : error C2065: 'CERT_CLOSE_STORE_FORCE_FLAG' : undeclared identifier
E:\Documents and Settings\aj\桌面\temp\SSLCon.cpp(157) : error C2065: 'CertOpenSystemStore' : undeclared identifier
E:\Documents and Settings\aj\桌面\temp\SSLCon.cpp(177) : error C2065: 'INTERNET_OPTION_CLIENT_CERT_CONTEXT' : undeclared identifier
E:\Documents and Settings\aj\桌面\temp\SSLCon.cpp(178) : error C2065: 'CERT_CONTEXT' : undeclared identifier
E:\Documents and Settings\aj\桌面\temp\SSLCon.cpp(189) : error C2143: syntax error : missing ';' before 'tag::id'
E:\Documents and Settings\aj\桌面\temp\SSLCon.cpp(189) : error C2501: 'PCCERT_CONTEXT' : missing storage-class or type specifiers
E:\Documents and Settings\aj\桌面\temp\SSLCon.cpp(189) : fatal error C1004: unexpected end of file found
Error executing cl.exe.SSLCon.obj - 19 error(s), 0 warning(s)