Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Associate a file type with my program
Message
 
 
To
02/09/2011 12:28:22
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01522598
Message ID:
01522604
Views:
58
Add LPARAMETERS statement to the main program of the project. The name of the file(s) that you opening will be passed as parameters to your program by Windows. Check http://www.berezniker.com/content/pages/visual-foxpro/how-pass-parameters-vfp-exe for some additional info.

>I had built my program (mypro.exe). In my program, I want to open many tables to work together in a form. These table are zip file with *.dtd extension. I write a codes module to unzip and open these tables.
>
>I register to windows to associate .dtd by mypro.exe.
>[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dtd]
>[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dtd\OpenWithList]
>"a"="m:\dtd2012\dutoan.exe"
>"MRUList"="a"
>
>However, when I double click file with .dtd extension, myprog.exe get errors with message “No PARAMETER statement is found” and that codes module to unzip and open these tables.
>
>What can I do to solve that problem?
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform