How to Run a DOS Program

Posted December 15th @ 8:42 pm by m3Rlin

You can run DOS (and Windows) programs using the Windows API WinExec() function.

WinExec(’C:\\NC.exe’, SW_NORMAL); { DOS program }

WinExec(’notepad.exe’, SW_MAXIMIZED); { Windows program started in maximized form }
For Win32 program you should use the CreateProcess() function although there will be no problems when you use this one.

How to Create a Screen Saver

Posted December 15th @ 7:35 am by m3Rlin

A screen saver is really just a Windows program. Screen savers can be divided into two types: full screen and effects. The first type has a bsNone border style, the form is usaully (not always, though) has a black background it’s maximized. They always have the fsStayOnTop form style. The second type is harder to [...]