Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.10.10;
Скачать: CL | DM;

Вниз

ShellExecute   Найти похожие ветки 

 
Shrek ©   (2002-08-26 21:49) [0]

Как используя ShellExecute при запуске программы передать параметр? Желательно пример.


 
Song ©   (2002-08-26 21:54) [1]

HINSTANCE ShellExecute(

HWND hwnd, // handle to parent window
LPCTSTR lpOperation, // pointer to string that specifies operation to perform
LPCTSTR lpFile, // pointer to filename or folder name string
LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters
LPCTSTR lpDirectory, // pointer to string that specifies default directory
INT nShowCmd // whether file is shown when opened
);


 
Shrek ©   (2002-08-26 21:54) [2]

Народ простите:
Будет так:
ShellExecute(Handle, "Open", "Project1.exe", "MyParam", nil, SW_SHOWNORMAL);


 
Shrek ©   (2002-08-26 21:56) [3]


> Song © (26.08.02 21:54)

Спасибо тебе огромное!



Страницы: 1 вся ветка

Текущий архив: 2002.10.10;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.011 c
1-31731
Konsul
2002-09-29 12:26
2002.10.10
Закрытие формы


1-31707
Ago
2002-09-27 18:46
2002.10.10
ComboBox1 с картинками... возможно?


7-32047
dera
2002-08-04 09:11
2002.10.10
Как удалять файлы из папки?


4-32090
vulsims
2002-08-25 12:17
2002.10.10
Как прочитать путь к файлу из *.lnk (ярлыка)


4-32096
arcoant
2002-08-27 21:41
2002.10.10
Регионы