Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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!!!
0 · ·