:) 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.
Previous
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