There is the great app to convert *.SHS to *.RTF
SHS – Shell Scrap Object File
download QScrap2rtf
Password to open archieve – ShsQs
Why did I decide to write this post?
Because of these:
[code language=”java”]
Could not find or load main class
[/code]
or How to specify main class for console app.
[code language=”pascal”]
var
PrIn: TProcessInformation;
StIn: TStartupInfo;
Res: bool;
ProcID, Process: Cardinal;
// start
begin
GetStartupInfo(StIn);
Res := CreateProcess(PChar(‘..\Project1.exe’),
PChar(‘"command line params"’), nil, nil, False, CREATE_NEW_PROCESS_GROUP,
nil, nil, StIn, PrIn);
ProcID := PrIn.hProcess;
Process := PrIn.dwProcessId;
end;
// kill
begin
TerminateProcess(ProcId, 0);
end;
[/code]