Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I run VFP from explorer wnd my program within it
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01632123
Message ID:
01632146
Vues:
37
>run this code from vfp and point to your exe.it point you the associated application able to run your exe.
>otherwise must set in explorer your association.
>in principe if vfp installed on system, it can open your exe file in all cases !
>this code makes only a confirmation
>
>Declare Integer FindExecutable In Shell32.Dll ;
>	string lpFile, ;
>	string lpDirectory, ;
>	string @lpResult
>
>lcResult = Space(100)
>lcFile = Getfile()     &&or put here your executable
>If Empty(lcFile)
>	retun
>Endi
>
>lcPath = Justpath(lcFile)      
>lnSuccess = FindExecutable(lcFile,lcPath,@lcResult)
>If lnSuccess <= 32
>	Messagebox("Cannot find the associated program")  &&then create association(explorer, rightclick,open with...(always)
>Else
>	Messagebox("Associated program is "+lcResult)
>Endif
>
>
I have resolved the problem - set exact on at the start of the program was missing - put it in and everything works - thanks for your help
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform