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.047 c
1-22184
Alligator
2001-12-21 09:44
2002.01.08
maybe who knows?


1-22189
bestix
2001-12-14 19:54
2002.01.08
Metafiles


1-22056
Delphimun
2001-12-15 13:11
2002.01.08
How to create a resource using brcc32.exe?


3-21907
RDA
2001-12-01 12:48
2002.01.08
Delphi и MySql


4-22510
Ilya
2001-10-14 18:06
2002.01.08
Изменение свойств принтера





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 spanish 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