![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2006
Posts: 7
Rep Power: 0
![]() |
hi! if anybody able to put this on Delphi for me don't hesitate :banana: tanx
{$M $4000,0,0 } { 16K stack, no heap } uses Crt,Dos; var ProgramName, CmdLine: string; begin ProgramName:='app.exe'; CmdLine:=''; delay(2000); SwapVectors; Exec(ProgramName, CmdLine); SwapVectors; end. |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
IOW (In Other Words):
1. use code tags 2. describe your problem carefully |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Mar 2006
Posts: 7
Rep Power: 0
![]() |
Delphi functions
In other words,i need the syntax in Delphi for a function that calls an external program(executable) and a second function to give my program a short delay in execution.tanx :banana:
|
|
|
|
|
|
#5 |
|
Newbie
Join Date: Mar 2006
Posts: 15
Rep Power: 0
![]() |
Go to msdn.microsoft.com and search these terms [and read what comes up for each]:
for calling an external program... ShellExecute() WinExec() CreateProcess() and for the delay... Sleep() Side Note: for the delay you could also use a TTimer Component in delphi. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|