home *** CD-ROM | disk | FTP | other *** search
- #include <windows.h> // for Windows - stuff
- #include <stdio.h> // for prototypes ( printf... )
- #include "win32con.h" // for WIN32sCON_InitConsole()
-
- int PASCAL WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow )
- {
- // you only have to include the following call
- WIN32sCON_ForceConsoleInit(); // this is the same as _InitEasyWin() in 16bit
- // now you can use stdio-routines to output to an extra window
- printf( "debug-message\n" );
-
- MessageBox( NULL, "Hello", "test03.c", MB_OK );
- return( 0 );
- }