I'm having problems to open a file for my program from the windows explorer. I already registered the file extension in the REGEDIT with the following values:
Default (String) = "C:MyProgramPathMyProgram.EXE" "%1"
Application (String) = "MyProgram.exe"
Also, I made the program load the file parameter (if any) from the command line using the ParamStr function on the OnFormCreate event handler, so it could load the file when the program starts. It all worked just fine when i opened the file from the DOS command prompt (CMD) like this:
C:MyProgramPath> MyProgram MyFile.ext
However, when i tried to do it from the windows explorer doble clicking the file, it didn't work, it is just not passing any parameters to the program. How can i solve this? I've read all the messageboards from this web page, but i still can't do it. Help!!!