I'm using this code in my application to check if there are any parameters on the commandline, and if there are any, then open the files.
if Paramcount > 0 then
for i := 1 to Paramcount do OpenFile(ParamStr(i));
If I pass a file to my application, f.x
hahaha.txt or something, I always get
HAHA~1.TXT or something like this.
Is this ParamStr function some old crap from Win3.1?
Is there a better way do to this?