hey people i need help in need to find out
how to open an other project with code. for example
i am first in a installer then i want to open the main
program.
plz help me
please help delphi
-
- Registered User
- Posts: 187
- Joined: 23 Jul 2007, 02:00
- Location: in the tree
- Contact:
CreateProcess()
http://msdn2.microsoft.com/en-us/library/ms682425.aspx
Havent tested this but it should work:
http://msdn2.microsoft.com/en-us/library/ms682425.aspx
Havent tested this but it should work:
Code: Select all
var
pi : PROCESS_INFORMATION;
si : STARTUPINFO;
strName : array[0..MAX_PATH] of char;
begin
ZeroMemory(@pi, sizeof(PROCESS_INFORMATION));
ZeroMemory(@si, sizeof(STARTUPINFO));
strName := 'C:\\aaa.exe';
CreateProcess(strName, nil, nil, nil, false, NORMAL_PRIORITY_CLASS, nil, nil, si, pi);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
end;