:) This is why I asked him if he tried it. I'm not sure about this and I'm too lazy to test it know. :
Vlad
>That's the max number of characters to copy. Since it's a string copy I do believe it'll stop at the first terminating null in the source string provided it occurs before the iMaxLength is reached.
>
>>Probably it will work. But, as you say, it's ugly. Did you try lstrcpyn()? It has a 3rd param that is the number of chars to be copied.
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