Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing array by reference to Win32API
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092129
Message ID:
00092155
Views:
31
Hello George, >> bombs out with an error "Type mismatch". Array should be filled with integer >> values. >What's the API call? Passing a string doesn't work? UINT GetKeyboardLayoutList( int nBuff, // size of buffer in array element HKL FAR *lpList // buffer for keyboard layout handles I defined it as
 Declare integer GetKeyboardLayoutList in Win32Api;
         integer,
         string @

 lcbuffer = space(200)
 lnBuflen = len(lcbuffer)
 lnLayoutCount = GetKeyboardLayoutList(lnBuflen, @lcbuffer)
Last statement bombs with an infamous "Performed illegal operation" error. I think that I'm doing something wrong < g
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform