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]

How can you run * .exe (specifically PowerPoint presentation viewer) through Delphi, so that the necessary PowerPoint file is loaded into the viewer?



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

Well, sort of
winexec (pchar ("c: \ word file_name"), sw_shownormal)



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

PP can be loaded as an OLE server (with all the ensuing features)



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.56 MB
Time: 0.026 c
1-22158
Praco
2001-12-20 16:29
2002.01.08
TCustomGrid and all its descendants ...


1-22028
tovSuhov
2001-12-18 12:16
2002.01.08
Maybe someone knows ...


6-22284
Delirium
2001-10-08 16:29
2002.01.08
How to send a message immediately to all IP addresses


1-22148
Delphimun
2001-12-20 12:10
2002.01.08
How to send a message to the system that a key is pressed?


4-22506
gluka
2001-11-06 00:16
2002.01.08
How to cram a * .dll file in an exe file?





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