mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
A even more simple windowing test.
This should be our first goal before winhello svn path=/trunk/; revision=2833
This commit is contained in:
parent
b1caf2b5e9
commit
5a5caf8ad5
2 changed files with 35 additions and 0 deletions
20
reactos/apps/tests/simple/makefile
Normal file
20
reactos/apps/tests/simple/makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
PATH_TO_TOP = ../..
|
||||
|
||||
TARGET_NORC = yes
|
||||
|
||||
TARGET_TYPE = program
|
||||
|
||||
TARGET_APPTYPE = windows
|
||||
|
||||
TARGET_NAME = simple
|
||||
|
||||
TARGET_SDKLIBS = kernel32.a gdi32.a
|
||||
|
||||
TARGET_OBJECTS = $(TARGET_NAME).o
|
||||
|
||||
include $(PATH_TO_TOP)/rules.mak
|
||||
|
||||
include $(TOOLS_PATH)/helper.mk
|
||||
|
||||
# EOF
|
15
reactos/apps/tests/simple/simple.c
Normal file
15
reactos/apps/tests/simple/simple.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* The simplest Windows program you will ever write.
|
||||
*
|
||||
* This source code is in the PUBLIC DOMAIN and has NO WARRANTY.
|
||||
*
|
||||
* Colin Peters <colinp at ma.kcom.ne.jp>, July 1, 2001.
|
||||
*/
|
||||
#include <windows.h>
|
||||
|
||||
int STDCALL
|
||||
WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
|
||||
{
|
||||
MessageBox (NULL, "Hello, Windows!", "Hello", MB_OK);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue