Hi There,

I used #include <WinInet.h> in my HTTP.h class and it is compiling without any probs in debug mode. But when I compile in release mode it gives 100 errors as follows.

1>HTTP.cpp
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\WinInet.h(58) : error C2146: syntax error : missing ';' before identifier 'HINTERNET'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\WinInet.h(58) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\WinInet.h(58) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\WinInet.h(59) : error C2143: syntax error : missing ';' before '*'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\WinInet.h(59) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

various errors keep going and it exceeds the maximum error count as follows and stop Release compilation.

1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\WinInet.h(788) : fatal error C1003: error count exceeds 100; stopping compilation

can some one help me.

Thanks,

Sam