using DlgBoxFileSelect
- Maciej 'YTM/Alliance' Witkowiak
- <ytm@friko.onet.pl>
+ Maciej 'YTM/Elysium' Witkowiak
+ <ytm@elysium.pl>
26.12.1999
*/
DlgBoxFileSelect("",APPLICATION,fName);
DlgBoxOk("You've chosen:" CBOLDON, fName);
- EnterDeskTop();
}
DlgBoxOk("Bye,", "Bye.");
- EnterDeskTop();
-
}
Hello, world example - with DBox
- Maciej 'YTM/Alliance' Witkowiak
- <ytm@friko.onet.pl>
+ Maciej 'YTM/Elysium' Witkowiak
+ <ytm@elysium.pl>
26.12.1999
*/
/* 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;
*/
- EnterDeskTop();
+ return;
}
/* 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;
*/
- EnterDeskTop();
+ return;
}
This small application removes GEOS disk write protection tag.
e.g. boot disk is always protected after boot-up
- Maciej 'YTM/Alliance' Witkowiak
- <ytm@friko.onet.pl>
+ Maciej 'YTM/Elysium' Witkowiak
+ <ytm@elysium.pl>
21.03.2000
*/
GetPtrCurDkNm(diskName);
break;
default: /* CANCEL is the third option */
- EnterDeskTop();
+ return;
break;
}
}
example of using DlgBoxYesNo, DlgBoxOkCancel and DlgBoxOk functions
- Maciej 'YTM/Alliance' Witkowiak
- <ytm@friko.onet.pl>
+ Maciej 'YTM/Elysium' Witkowiak
+ <ytm@elysium.pl>
26.12.1999
*/
};
} while (DlgBoxOkCancel("Do you want to try again?", "") == OK);
- EnterDeskTop();
}