2000-07-15 09:12:11 +00:00
|
|
|
/*
|
|
|
|
GEOSLib example
|
2022-04-17 14:06:45 +00:00
|
|
|
|
2000-07-15 09:12:11 +00:00
|
|
|
Hello, world example - with DBox
|
2022-04-17 14:06:45 +00:00
|
|
|
|
2003-01-10 21:09:13 +00:00
|
|
|
Maciej 'YTM/Elysium' Witkowiak
|
|
|
|
<ytm@elysium.pl>
|
2022-04-17 14:06:45 +00:00
|
|
|
|
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,
|
2013-05-09 11:56:54 +00:00
|
|
|
"This is written in C!");
|
2022-04-17 14:06:45 +00:00
|
|
|
|
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)
|
2019-11-11 15:30:09 +00:00
|
|
|
// exit(EXIT_SUCCESS);
|
2012-02-09 12:32:53 +00:00
|
|
|
// return;
|
|
|
|
|
2003-01-10 21:09:13 +00:00
|
|
|
return;
|
2000-07-15 09:12:11 +00:00
|
|
|
}
|