Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing array by reference to Win32API
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00092129
Message ID:
00092155
Vues:
32
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform