2000-07-15 09:12:11 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
GEOSLib example
|
|
|
|
|
|
|
|
Hello, world example - with DBox
|
|
|
|
|
2003-01-10 21:09:13 +00:00
|
|
|
Maciej 'YTM/Elysium' Witkowiak
|
|
|
|
<ytm@elysium.pl>
|
2000-07-15 09:12:11 +00:00
|
|
|
|
|
|
|
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.
|
2003-01-10 21:09:13 +00:00
|
|
|
So instead:
|
|
|
|
MainLoop();
|
|
|
|
we can do:
|
|
|
|
(nothing as this is the end of main function)
|
|
|
|
exit(0);
|
|
|
|
return;
|
2000-07-15 09:12:11 +00:00
|
|
|
*/
|
2003-01-10 21:09:13 +00:00
|
|
|
return;
|
2000-07-15 09:12:11 +00:00
|
|
|
}
|