import winsup-2000-02-17 snapshot
This commit is contained in:
9
winsup/mingw/samples/test/jamfile
Normal file
9
winsup/mingw/samples/test/jamfile
Normal file
@@ -0,0 +1,9 @@
|
||||
#
|
||||
# A very simple example with which you can test your compiler/jam setup.
|
||||
# Also an interesting example of a hybrid console/GUI application.
|
||||
#
|
||||
|
||||
Main test.exe : test.c ;
|
||||
|
||||
GuiLibs test.exe ;
|
||||
|
20
winsup/mingw/samples/test/test.c
Normal file
20
winsup/mingw/samples/test/test.c
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* This source code is in the PUBLIC DOMAIN and has NO WARRANTY.
|
||||
*
|
||||
* Colin Peters <colin@bird.fu.is.saga-u.ac.jp>, April 15, 1997.
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int STDCALL
|
||||
WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
|
||||
{
|
||||
char text[80];
|
||||
|
||||
printf ("Enter message box text:");
|
||||
fgets(text, 80, stdin);
|
||||
MessageBox (NULL, text, "Test", MB_OK);
|
||||
printf ("\nHello after message box.\n");
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user