Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program associations with extensions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00293841
Message ID:
00293858
Vues:
19
>>Does anyone know how to associated a certain extension with a program, using VFP or VFP API calls. I would like to associate the TIF extension with the wang imager windows 95 and with kodak imager for windows 98. Users can't seem to do this on their own. I have been doing it manually for so long it is second nature, but I cant get a 50 year old engineer to understand the concept even with the best documentation I could create.
>
>There is no API to do this directly- the only way to do it is by adjusting the registry entries in HKEY_CLASSES_ROOT. YOu can use the Registry class in the FFCclasses, or any one of several available for download here.
>
>To figure out what to do, look up .tif and .tiff in your registry (one that has already been set the way you want it), and see what File class they are a member of. On my machine they are of TIFImage.Document. You then would then look up TIFImage.Document in the lower half of HKCR, and navigate to the string contained in HKEY_CLASSES_ROOT\TIFImage.Document\shell\open\command. My machine has "C:\Program Files\Windows NT\Accessories\ImageVue\WangImg.Exe "%1"".
>
>THese are the minimum requirements for a file association.

One dangling question, do you think after I make changes to the registry to accomplish this, will the user have to reboot inorder for the changes to be in effect?
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform