home *** CD-ROM | disk | FTP | other *** search
- #include <windows.h> // for Windows - stuff
- #include <stdio.h> // for prototypes ( printf... )
- #include <iostreams.h>
- #include "win32con.h" // for WIN32sCON_ForceConsoleInit()
-
- int PASCAL WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow )
- {
- // you only have to include the following call:
- WIN32sCON_ForceConsoleInit();
-
- // after this you can use printf.. for outputting debug-messages
- printf( "test04.cpp: printf from a Windows-program!\n" );
- return( 0 );
- }
-
-
-