|
Post by TheSeij on Nov 9, 2004 17:15:47 GMT -5
procedure ImgBtn1OnClick(Sender: TObject); var ERR : integer; begin ShellExec('%SRCDIR%\GBA\gba.exe','','%SRCDIR%\GBA',SW_SHOWNORMAL,ERR); end;
What am I Doing Wrong?!?! I use the full out directory structure and it works, but if I place %SRCDIR% in there it doesnt open anything up.
APB Finished EXE is located in: C:\gamez\system Emulators\EmuMenu.exe
The File to be Executed: C:\Gamez\System Emulators\gba\gba.exe
|
|
|
Post by Murariu Alexandru on Nov 12, 2004 5:06:46 GMT -5
procedure ImgBtn1OnClick(Sender: TObject); var ERR : integer; begin ShellExec(RepConst('%SRCDIR%\GBA\gba.exe'),'',RepConst('%SRCDIR%\GBA'),SW_SHOWNORMAL,ERR); end;
You MUST USE the RepConst function. See Help.
|
|
|
Post by TheSeij on Nov 13, 2004 16:41:38 GMT -5
Sorry I meant to close this, I relized what I had did wrong, works great now. Thanks
|
|