Information générale
Catégorie:
Fonctions Windows API
>>Also, VFP strings are not null terminated and this can be a "bad news" when using C/C++ functions on them.
>
>Nope. VFP converts strings to NULL terminated when calling the API and
>to wide character OLE BSTR when calling COM objects. This is not an
>issue only if you're dealing with the LCK interface (although I haven't
>looked at that in a while - might be that the var structs have been
>changed over to follow variant structures by now).
>
>+++ Rick ---
I know that. I wanted to say that in VFP a chr(0) doesn't terminate the string as in C/C++, ie the definition of strings is different in the two languages.
Obviously, my previous comment was not for you. :) I'm sure you knew it. :)
Vlad
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement