And this is the answer:
{*************************************************************}
procedure TMain.ToolsPiceditClick(Sender: TObject);
{*************************************************************}
var TempPChar : PChar;
begin
if FileExists(ProgramDir+'PICEDIT.EXE') then
begin
if GameIsOpen then ChDir(GameDir)
else ChDir(ProgramDir);
GetMem(TempPChar,Length(ProgramDir+'PICEDIT.EXE')+1);
StrPCopy(TempPChar,ProgramDir+'PICEDIT.EXE');
WinExec(TempPChar,SW_SHOW);
FreeMem(TempPChar,Length(ProgramDir+'PICEDIT.EXE')+1);
end
else
begin
ToolsPicedit.Enabled := False;
ShowMessage('File PICEDIT.EXE not found!');
end;
end;
There is nothing in there that I can see that shows it appending the picture resource file on the end of the WinExec call. It must simply launch the tool and that is that.