Added tutorial files from Maciek
git-svn-id: svn://svn.cc65.org/cc65/trunk@149 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
29
samples/geos/hello1.c
Normal file
29
samples/geos/hello1.c
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
/*
|
||||
|
||||
GEOSLib example
|
||||
|
||||
Hello, world example - with DBox
|
||||
|
||||
Maciej 'YTM/Alliance' Witkowiak
|
||||
<ytm@friko.onet.pl>
|
||||
|
||||
26.12.1999
|
||||
*/
|
||||
|
||||
#include <geos.h>
|
||||
|
||||
void main (void)
|
||||
{
|
||||
|
||||
/* Let's show what we've got... */
|
||||
|
||||
DlgBoxOk(CBOLDON "Hello, world" CPLAINTEXT,
|
||||
"This is written in C!");
|
||||
|
||||
/* Normal apps exit from main into system's mainloop, and app finish
|
||||
when user selects it from icons or menu, but here we want to exit
|
||||
immediately.
|
||||
*/
|
||||
EnterDeskTop();
|
||||
}
|
||||
Reference in New Issue
Block a user