Hi,
I am having to use MFC in my project. Including these files:
//#include "Poco/Logger.h"
//#include "Poco/LoggingFactory.h"
//#include "Poco/Message.h"
//#include "Poco/EventLogChannel.h"
//#include "Poco/Net/HostEntry.h"
//#include "Poco/Net/DNS.h"
in my header gives me this error "WINDOWS.H already included ...". List of files that compiler includes showed that Poco includes Windows.h and there is some unWindows.h as well. Commenting out all poco headers and Poco code got the whole thing built successfully. Any idea what is going on? Basically, I have isolated MFC in a library but due to some Microsoft Visual C++ 2010 bugs have to include the MFC related headers in my primary header and doing that give me this error. I want to use Poco - I am using it for logging and getting the IP. I certainly appreciate your help. Best regards, Asif





