Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Include .dll in a project
Message
De
09/04/2001 18:52:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00491650
Message ID:
00493831
Vues:
15
>>Hi Ed,
>> You probably knew I was going to ask this: is there an API I can use to get an appropriate subdirectory on the Windows path?
>> I am working with George Tasker's LnkFiles.DLL which contains a call to such an API; unfortunately, it is the same dll that I am trying to load.
>> Oh well, since I need to support Win/NT 4.0, probably all flavors of 9.5x and Win2000, it is probably getting too complicated to be worthwhile. Perhaps I should just use the kludge I described in the previous message. What do you think?
>> Thanks, Chaim
>
>Yes. GetSystemDirectory. You can get a VFP example from the WinAPI section.

You can also use SHGetFolderPath(), which handles the issue of side-by-side version installs; it's preferable since Win2K and ME, and presumably XP, are protective of their system directory contents, and will supply an app-specific folder for the system CSLID for a given app to allow multiple versions of a DLL to be installed for different apps. The Windows search path sometimes becomes obscured, especially in the near future with the managed code environment. There's an example of SHGetFolderPath() in the Win API section.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform