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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only