Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Associate a file type with my program
Message
 
 
À
02/09/2011 12:28:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01522598
Message ID:
01522604
Vues:
59
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform