c++ - #include <afxinet.h> in a header file causes a lot of compilation error, however, include it in a cpp file is ok -


the first error when putting #include <afxinet.h> in header file intellisense: #error directive: windows.h included. mfc apps must not #include <windows.h>

(1) idea why it?

the other similar thing if put headers in wrong order, odd errors appear, msg not make sense @ all... kind of behaviour of vc++ complier driving me crazy.

(2)anyone has solution kind of problem?

i had similar problem winsock.h, that:

fatal error c1189: #error : winsock.h has been included

i've added win32_lean_and_mean preprocessor directive project , fixed it.

i can't tell why, or reason behind that.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -