![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Мужики(и дамы тоже =ъ)! Извините за ламерский вопрос, но... [D5, WinME]
В.И.Чапаев © (2001-11-30 21:18:00)К А К ЗАПУСКАТЬ ПРОГРАММЫ(*.EXE) ИЗ ДЕЛЬФИ?
B@Nt (2001-12-01 19:46:00) [1]uses
shellapi;
...
procedure button1.click...
ShellExecute(form1.handle,nil," c:\",nil,nil,sw_shownormal);
Undert (2001-12-01 14:24:00) [2]Не, это же разврат !
Проще надо, проще: "ShellExecute();", а в модуле ShellApi
msa (2001-12-01 12:46:00) [3]По моему, лучше использовать CreateProcess...
BOOL CreateProcess(
LPCTSTR lpApplicationName, // pointer to name of executable module
LPTSTR lpCommandLine, // pointer to command line string
LPSECURITY_ATTRIBUTES lpProcessAttributes, // pointer to process security attributes
LPSECURITY_ATTRIBUTES lpThreadAttributes, // pointer to thread security attributes
BOOL bInheritHandles, // handle inheritance flag
DWORD dwCreationFlags, // creation flags
LPVOID lpEnvironment, // pointer to new environment block
LPCTSTR lpCurrentDirectory, // pointer to current directory name
LPSTARTUPINFO lpStartupInfo, // pointer to STARTUPINFO
LPPROCESS_INFORMATION lpProcessInformation // pointer to PROCESS_INFORMATION
);
Undert (2001-11-30 23:45:00) [4]В Экзамплах есть модуль FMXUtils: ExecuteFile(See help,...);
В Shell32.dcu: ShellExecute(PChar(See help),...);