c++builder 使用wininet时,我#include <Wininet.h> 编译出错
我在c++builder6 使用wininet时,把wininet.lib加入工程,然后#include <Wininet.h>时编译出错,
[C++ Error] Wininet.h(56): E2257 , expected
[C++ Error] Wininet.h(57): E2257 , expected
[C++ Error] Wininet.h(59): E2257 , expected
[C++ Error] Wininet.h(60): E2257 , expected
[C++ Error] Wininet.h(297): E2303 Type name expected
[C++ Error] Wininet.h(297): E2139 Declaration missing ;
[C++ Error] Wininet.h(303): E2303 Type name expected
[C++ Error] Wininet.h(303): E2139 Declaration missing ;
[C++ Error] Wininet.h(319): E2303 Type name expected
[C++ Error] Wininet.h(319): E2139 Declaration missing ;
[C++ Error] Wininet.h(325): E2303 Type name expected
[C++ Error] Wininet.h(325): E2139 Declaration missing ;
[C++ Error] Wininet.h(331): E2303 Type name expected
[C++ Error] Wininet.h(331): E2238 Multiple declaration for ' ::LPCTSTR'
[C++ Error] Wininet.h(325): E2344 Earlier declaration of ' ::LPCTSTR'
[C++ Error] Wininet.h(331): E2139 Declaration missing ;
[C++ Error] Wininet.h(343): E2303 Type name expected
[C++ Error] Wininet.h(343): E2139 Declaration missing ;
[C++ Error] Wininet.h(345): E2303 Type name expected
[C++ Error] Wininet.h(345): E2139 Declaration missing ;
[C++ Error] Wininet.h(346): E2303 Type name expected
[C++ Error] Wininet.h(346): E2139 Declaration missing ;
[C++ Error] Wininet.h(347): E2303 Type name expected
[C++ Error] Wininet.h(347): E2139 Declaration missing ;
[C++ Error] Wininet.h(351): E2303 Type name expected
请问这个该怎么解决?
[解决办法]
你的单元中还包含了哪些头文件?列出来看看。应该是头文件包含顺序的问题。