WINDOWS.H already included

TeeChart for ActiveX, COM and ASP
Post Reply
MikeK
Newbie
Newbie
Posts: 3
Joined: Tue Mar 12, 2013 12:00 am

WINDOWS.H already included

Post by MikeK » Thu Mar 21, 2013 1:13 pm

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: WINDOWS.H already included

Post by Sandra » Thu Mar 21, 2013 3:11 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

MikeK
Newbie
Newbie
Posts: 3
Joined: Tue Mar 12, 2013 12:00 am

Re: WINDOWS.H already included

Post by MikeK » Fri Mar 22, 2013 7:09 pm

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

Thanks,

Mike

MikeK
Newbie
Newbie
Posts: 3
Joined: Tue Mar 12, 2013 12:00 am

Re: WINDOWS.H already included

Post by MikeK » Fri Mar 22, 2013 7:12 pm

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

Post Reply