Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I format a string for a call to GetProcAddress AP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01030708
Message ID:
01030727
Vues:
16
This didn't seem to work either. Maybe I'm doing something else wrong but it looks fine to me. Here's what I tried:
DECLARE INTEGER LoadLibrary IN kernel32 STRING lpLibFileName
DECLARE INTEGER GetProcAddress IN kernel32 INTEGER hModule, STRING lpProcName

m.handle = LoadLibrary("QuickHash.dll")
m.test = chr(154)+chr(0)+chr(0)+chr(0)
m.phandle = GetProcAddress(m.handle,m.test)
After all that, m.phandle contains a 0 when it should contain a handle to the function.

>Try this:
>
>
>lpProcName = CHR(154)+CHR(0)+CHR(0)+CHR(0)
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform