TinyXML GetText()

Started by
14 comments, last by mattd 14 years, 5 months ago
I think you'll find the entire string has been loaded, it's just that MSVS only displays the first 256 bytes as a preview in the tooltip.
Advertisement
I hope char_length returns strlen(string)+1...
mattd: Actually no. I have another function, which split string into numbers :) and it return only these numbers.

DirectX 11, C++

Quote:Original post by wh1sp3rik
mattd: Actually no. I have another function, which split string into numbers :) and it return only these numbers.
Can we see that function? What does strlen(INCIDES_DATA) return in both cases?
Don't worry :) my length function works correctly.

i found a problem. Problem is, i can't get amount of float items :D it returned only 500 numbers .. because there were value with 0 :D and i tried to count until data = NULL :D i just forgot, It works only with chars.

Is there a way, how to calculate amount of floats in array ? :) which is dynamicly allocated ? float * variable = new float[1000]; ?

DirectX 11, C++

Quote:Original post by wh1sp3rik
Is there a way, how to calculate amount of floats in array ? :) which is dynamicly allocated ? float * variable = new float[1000]; ?

If you don't know the size you allocated with, then no. Use a std::vector or similar instead.

This topic is closed to new replies.

Advertisement