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
|
|
|
|
*/
|
|
|
|
|
2012-02-09 12:32:53 +00:00
|
|
|
|
2000-07-15 09:12:11 +00:00
|
|
|
#include <geos.h>
|
|
|
|
|
|
|
|
void main (void)
|
|
|
|
{
|
2012-02-09 12:32:53 +00:00
|
|
|
// Let's show what we've got...
|
2000-07-15 09:12:11 +00:00
|
|
|
|
|
|
|
DlgBoxOk(CBOLDON "Hello, world" CPLAINTEXT,
|
|
|
|
"This is written in C!");
|
|
|
|
|
2012-02-09 12:32:53 +00:00
|
|
|
// 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.
|
|
|
|
// So instead:
|
|
|
|
// MainLoop();
|
|
|
|
// we can do:
|
|
|
|
// (nothing as this is the end of main function)
|
|
|
|
// exit(0);
|
|
|
|
// return;
|
|
|
|
|
2003-01-10 21:09:13 +00:00
|
|
|
return;
|
2000-07-15 09:12:11 +00:00
|
|
|
}
|