Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

How can Delphi run * .exe with .... Find similar branches


Romualds Stashans   (2001-12-18 11:07) [0]

Каким образом через Delphi можно запустить *.exe (конкретно просмотровщик презентаций PowerPoint), причем чтобы в просмотровщик был подгружен необходимый файл формата PowerPoint?



gek   (2001-12-18 11:17) [1]

ну вроде бы так
winexec(pchar("c:\word file_name"),sw_shownormal)



Digitman   (2001-12-18 11:23) [2]

PP можно грузить как OLE-сервер (со всеми вытекающими возможностями)



Dmitriy(new)   (2001-12-18 11:39) [3]

function CreateProcessSimple(sExecFilePath:string;AWait:Boolean;AMax:Boolean):string;
var si: TStartupInfo; pi: TProcessInformation;
begin
FillMemory( @si, sizeof( si ), 0 ); si.cb := sizeof( si );
IF Amax Then Begin si.dwFlags := STARTF_USESHOWWINDOW; si.wShowWindow:=SW_SHOWMAXIMIZED; End;
if not CreateProcess(Nil,PChar(sExecFilePath ),Nil, Nil, False,
NORMAL_PRIORITY_CLASS , Nil, Nil, si, pi ) then
Application.MessageBox(Pchar("Failed to execute program : "+sExecFilePath),"Error",IDOK);
result:=inttostr(PI.hProcess); CloseHandle( pi.hThread );
Application.ProcessMessages;
if AWait then WaitForSingleObject(pi.hProcess, INFINITE);
CloseHandle( pi.hProcess );
end;



Anatoly Podgoretsky   (2001-12-18 12:33) [4]

ShellExecute(Handle,"open","PPT_FILE.ppt",nil,nil,sw_shownormal)



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.82 MB
Time: 0.026 c
1-22113
Yuraz
2001-12-19 20:25
2002.01.08
Brothers why


1-22251
Dreamer
2001-12-17 14:17
2002.01.08
Prompt nachset TLIST


1-22130
Katherine
2001-12-20 07:37
2002.01.08
help, good people


3-21969
Kozhanov
2001-11-30 18:31
2002.01.08
OBDC driver options


1-22193
T2
2001-12-14 03:17
2002.01.08
DLL





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish