|
|
|
|
![]() ![]() |
Aug 5 2005, 07:54 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 407 Joined: 13-December 04 Member No.: 2,696 |
I am with problem - it would be great to call some external programm from Delphi, wait - till it executes and exits and only then continue work of my Delphi program, how can I do this. I tried ShellExec and ShellExecEx - however - it only calls program and exits - it would be great to registre some handler - which monitors when this called program exits?
Any design ideas for such an problem could be very helpful, thanks in advance Kvarnerexpress |
|
|
|
Aug 6 2005, 10:03 AM
Post
#2
|
|
|
Trap Grand Marshal Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,205 Joined: 25-March 05 Member No.: 4,883 |
I don't know about Delphi and I came across the same problem with I was doing on Visual Basic.
What I did was to call a DOS prompt, you may like to try it. |
|
|
|
Apr 11 2006, 07:09 AM
Post
#3
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 130 Joined: 21-December 05 Member No.: 15,990 |
I am with problem - it would be great to call some external programm from Delphi, wait - till it executes and exits and only then continue work of my Delphi program, how can I do this. I tried ShellExec and ShellExecEx - however - it only calls program and exits - it would be great to registre some handler - which monitors when this called program exits? Any design ideas for such an problem could be very helpful, thanks in advance Kvarnerexpress well... guyz... CODE Shellapi.ShellExecute( application.Handle,'open',pchar('program path'),pchar('parameters'),'',1 ); Note: last parameter (1) gets window state! maximazed, minimized, normal,focused,unfocused and so on... |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 20th July 2008 - 05:46 PM |