I get an error when trying to compile a small c++ program
Error 87 fatal error C1189: #error : WINDOWS.H already included. 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. I am using a visual studio 2008 IDE
Any reason why ?
h is a Windows-specific header file for the C and C++ programming languages which contains declarations for all of the functions in the Windows API, all the common macros used by Windows programmers, and all the data types used by the various functions and subsystems.
h'". That problem happens because the file, which is needed to compile programs that make calls to the Windows operating system, is not installed. To fix this, download and install the Microsoft Windows SDK for your system (it is free).
To start dictating, select a text field and press the 'Windows logo key' +' H' to open the dictation toolbar. Just start speaking and it creates text from your voice. If you pause for a few seconds you may have to select the dictation icon in the dictation toolbar.
<windows. h> header file is used to access the Win32 API functions and it makes it easier for the user to use the in-built functionality. - The header file in particular includes the library and functions used in the libraries like stdio.
try and include afxcoll.h before stdafx.h. I had the same problem and it fixed it. See http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/2ab6862f-0d90-467a-b283-f62f6aef96fe/ for the original discussion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With