Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows API call in VFP 5.0
Message
From
28/03/1997 19:23:00
 
 
To
28/03/1997 15:49:18
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00026091
Message ID:
00026102
Views:
40
Andre,

Going strictly from Help I notice that you have CODED @tmpstring but do NOT see a corresponding @ in the DECLARE statement. This may have something to do with your problem.

Jim N.

>I use VFP 5.0 and Windows95, I type following code:
>
>DECLARE LONG RegQueryValue IN advapi32.dll Long nKey,String lpSubKey,String
>lpValue,Long lpcbValue
>Local nResult, TmpString, TmpLength
>TmpString = SPACE(255)
>TmpLength = LEN(TmpString)
>
>* -2147483647 == "HKEY_CURRENT_USER"
>nResult =
>RegQueryValue(-2147483647,"Software\Testing",@tmpstring,tmpLength)
>
>but (nResult = 87) Error!
>I try this code in Visual Basic 4.0 and Windows95, but the result is
>correct and return "10,20" (Self define key)
>
>Thanks
>Andre
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform