Page 1 of 1

WINDOWS.H already included

Posted: Thu Mar 21, 2013 1:13 pm
by 16665398
I just upgraded to v2012 ActiveX.

I haver no problems when building my MFC program in debug. However, when building in Release mode I get the following error message when compiling every TeeChart .cpp file.

qtclustering.cpp
afxv_w32.h(16) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>

Can you help?

Mike K

Re: WINDOWS.H already included

Posted: Thu Mar 21, 2013 3:11 pm
by 10050769
Hello Mike K,

I am not sure because it occurs, but I have searched the error in the network and I have found some solution that can help you to solve it:

http://social.msdn.microsoft.com/Forums ... f6aef96fe/
http://stackoverflow.com/questions/1017 ... -windows-h
http://stackoverflow.com/questions/5026 ... -h-and-mfc

If this links doesn't help you, please let me know and send us your project because we can find a good solution for you.

Thanks,

Re: WINDOWS.H already included

Posted: Fri Mar 22, 2013 7:09 pm
by 16665398
I found the answer. The StdAfx.h file was being used instead of the StdAfx file created for my solution.

Thanks,

Mike

Re: WINDOWS.H already included

Posted: Fri Mar 22, 2013 7:12 pm
by 16665398
Correction:

I found the answer. The StdAfx.h file in the TeeChart source directory was being used instead of the StdAfx file created for my solution.

Thanks,

Mike