Original Post
Well, I finally pick up TOTWPG and it looks great
Anyway, I go to compile the first example, by:
1) Creating a new Win32 Application
2) Using the wizard, selecting the second option, a "Simple win32 Application"
3) Then adding the following source code, straight from the CD
I SHOULD get a message box from compiling, instead I get this message:
"--------------------Configuration: Peon3 - Win32 Debug--------------------
Compiling...
demo2_2.cpp
c:\program files\microsoft visual studio\21days\peon3\demo2_2.cpp(22) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
Peon3.exe - 1 error(s), 0 warning(s)"
Wanting to figure the problem out myself, I check the C++ Help file and get this:
Any suggestions, anyone?
thanks
Peon
// DEMO2_2.CPP - a simple message box
#define WIN32_LEAN_AND_MEAN
#include <windows.h> // the main windows headers
#include <windowsx.h> // a lot of cool macros
// main entry point for all windows programs
int WINAPI WinMain(HINSTANCE hinstance,
HINSTANCE hprevinstance,
LPSTR lpcmdline,
int ncmdshow)
{
// call message box api with NULL for parent window handle
MessageBox(NULL, "THERE CAN BE ONLY ONE!!!",
"MY FIRST WINDOWS PROGRAM",
MB_OK | MB_ICONEXCLAMATION);
// exit program
return(0);
} // end WinMain
|
quote:Sorry, but at my level, that doesn''t tell me a whole lot
Fatal Error C1010 unexpected end of file while looking for precompiled header directive A precompiled header was specified, but it did not contain a precompiled header directive. This error can be caused by specifying an incorrect file as a header file, or by specifying an include file with the /Yu (Use Precompiled Header) command line option that is not listed in the source file as an include file.