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
Post a Comment