Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I format a string for a call to GetProcAddress AP
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01030708
Message ID:
01030727
Views:
14
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)
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform