Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change dll search order in Win 2003 and XP SP1
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00891847
Message ID:
00891862
Vues:
20
Hi Geroge,

If the application is going to be run on different OS, it seems that I need to do this:

To compile an application that uses this function, define the _WIN32_WINNT macro as 0x0502 or later. For more information, see Using the Windows Headers.

I copy the above paragraph from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/setdlldirectory.asp

I want to change the dll search order to use the dlls in the application folder. For Windows 98 SE, Windows NT 4 and Windows 2000, I believe I just need to copy the dlls into the application folder and have a file with .local extension. For Windows XP SP1 and Windows 2003, I believe I need to use SetDllDirectory function. Does this sounds right to you? What is the value lpPathName I should use?


Thank you for your help,

Peter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform