Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test.c « test « samples « mingw « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 82ca6b0fc31570521abb526b9ab58ac6e01554ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
}