Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launch a Win32 App from VFP
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Launch a Win32 App from VFP
Divers
Thread ID:
00559643
Message ID:
00559643
Vues:
135
HI all,

I want to launch a win32 app or open some file from within VFP (for example a ZIP file).

To do so, I'm using Registry.vcx and Process.vcx classes.

With registry.vcx I get the app assosiated to a file extension, i.e. C:\PF\Winzip32.exe for a ZIP file.

After that I launch the app with process.vcx like this:
oProcess = CREATEOBJ('API_AppRun','c:\PF\Winzip32.exe ZIPFILE.ZIP' )
oProcess.LaunchAppAndWait()

It is working ok for known extensions, but I'd like to show a window allowing the user to choose the application he wants to use to open a file that has no app assosiated to its extension.

Am I clear?... something like if registry.vcx returns a null app assosiated, then open a "Open with" window instead of calling the LaunchApp() in process,vcx.

TIA
Fabian
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform