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.

Delphi Component Messages

Posted December 15th @ 1:56 pm by m3Rlin

Delphi sends messages for notification of events that are only applicable to Delphi components. They are like Windows messages in use. If you have a component that publishes the Font property the component probably needs to be repainted if any subproperties in the Font are changed. Changing the Font property does not necessarily generate a [...]