Home > Fatal Error > Fatal Error C1189 #error Windows.h

Fatal Error C1189 #error Windows.h

Why is absolute zero unattainable? C# questions Linux questions ASP.NET questions SQL questions VB.NET questions discussionsforums All Message Boards... MFC apps must not #include c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxv_w32.h 16 I made sure that the windows.h was not included in any of the project files I have. MFC apps must not #include .I see the related question and change corresponds.but it give me error.When i remove the windows.h then write afxwin.h then main source file some variable undeclared navigate here

Why would a password requirement prohibit a number in the last character? If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. However I do require afxwin.h for AfxGetInstanceHandle() function that I use ... Isn't that more expensive than an elevated system? have a peek at this web-site

Subscribed! I don't know why. // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed A solution that worked for me was: Open stdafx.h Replace #include with #include share|improve this answer edited Jan 8 '15 at 16:51 answered Jan 8 '15 at 13:38 Kilovolt If so, then comment Windows.h and then check, the error may go off.

  • MFC apps must not #include Rate this: Please Sign up or sign in to vote.
  • Success!
  • MFC apps must not #include windows.h But i dont know how do i find out because of which file this is happening Thanks c++ share|improve this question asked Jun 19 '09
  • Make space between rows constant How to decrypt a broken S/MIME message sent by Outlook?
  • you could either inspect the header files included by that cpp file, looking for .
  • Are there any rules or guidelines about designing a flag?
  • Why is the spacesuit design so strange in Sunshine?
  • Would you please more detail it? –user3289501 Feb 12 '14 at 10:44 @user3289501: I would create two interfaces, let's say Lib1 and Lib2, and hide using of problematic headers
  • Cyberpunk story: Black samurai, skateboarding courier, Mafia selling pizza and Sumerian goddess as a computer virus Good Term For "Mild" Error (Software) How should I interpret "English is poor" review when

in personal freedom. Be sure to check in there. According to support.microsoft.com/kb/173974/en-us the mfc includes should be prior to the atl. –halex Feb 12 '14 at 10:37 @halex, If I do so, I'll get a weird error that MFC apps must not #include Visual Studio Languages , Windows Desktop Development > Visual C++ Question 0 Sign in to vote I have looked through the other posts concerning this

Your Email This email is in use. share|improve this answer edited Jun 19 '09 at 13:00 OregonGhost 18.8k45199 answered Jun 19 '09 at 12:54 Cătălin Pitiș 11.6k22658 add a comment| up vote 1 down vote Check probably Windows.h Physically locating the server Did Sputnik 1 have attitude control? http://stackoverflow.com/questions/16550921/error-c1189-error-windows-h-already-included-mfc-apps-must-not-include-wi How to solve the old 'gun on a spaceship' problem?

In nomenclature, does double or triple bond have higher priority? How do I proceed? MFC apps must not #include 2fatal error C1189: #error : WINDOWS.H already included. And for me it's a symbol of my individuality, and my belief...

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed These should be the only ones that appear in stdafx.h, along with #defines used by these headers (eg. How much interest should I pay on a loan from a friend? The only solution: Don't include windows.h when using MFC.

Optional Password I have read and agree to the Terms of Service and Privacy Policy Please subscribe me to the CodeProject newsletters Submit your solution! check over here more hot questions question feed lang-cpp about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Then... What is the difference between i2pd and Kovri?

Can a Legendary monster ignore a diviner's Portent and choose to pass the save anyway? This way, the .h file will #include anything it needs to work properly. - After these 2 includes in your .cpp file, include anything else needed for the .cpp file to Reply With Quote March 12th, 2013,08:26 PM #5 Eri523 View Profile View Forum Posts Elite Member Join Date Jun 2010 Location Germany Posts 2,634 Re: Help me with "fatal error C1189: http://bashprofile.net/fatal-error/fatal-error-c1189-error-file-must-be-compiled-with-afxdll.html c++ visual-studio-2010 mfc sql-server-ce stdafx.h share|improve this question edited Mar 21 '14 at 19:15 asked Mar 21 '14 at 18:21 suuuzi 174115 1 Based on this, wouldn't including afx.h or

Books for chess traps Is it appropriate to tell my coworker my mom passed away? Saturday, July 13, 2013 10:18 AM Reply | Quote Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. Join them; it only takes a minute: Sign up C1189: #error : WINDOWS.H already included.

If you want to get involved, click one of these buttons!

My CEO wants permanent access to every employee's emails. I don't understand why it is occuring.   Can anyone help me to sovle this?   Thanks in advance, Usha.   Friday, August 24, 2007 5:15 PM Reply | Quote 0 What are "desires of the flesh"? MFC apps must not #include 1Error: MFC projects cannot define _ATL_NO_EXCEPTIONS71What's the fundamental difference between MFC and ATL?0error C1189: #error : WINDOWS.H already included.

Solution 4 Accept Solution Reject Solution This may help someone. What emergency gear and tools should I keep in my vehicle? Copyright Quinstreet Inc. 2002-2016 Discussions Best Of... weblink I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

If not, you need to create a non-MFC project. –rcgldr Mar 21 '14 at 20:45 yes, it uses MFC –suuuzi Mar 21 '14 at 23:44 add a comment| up To start viewing messages, select the forum that you want to visit from the selection below. i solved it through the following method: just add below precompile definitions : #ifdef __windows__ #undef __windows__ #endif and thanks again Permalink Posted 14-Dec-14 1:21am Mahdi Nejadsahbei3.9K Comments Jochen