I have a piece fo code that I need to modify to return the number of bytes in a smart array of type <char>. Anyone know how to do this? I don't use smart types (I think they are yucky), but I have to fix someone elses code on this one.
Printable View
I have a piece fo code that I need to modify to return the number of bytes in a smart array of type <char>. Anyone know how to do this? I don't use smart types (I think they are yucky), but I have to fix someone elses code on this one.
thx :)
Note that the only definite guarantee that C and C++ give about sizes of types is that sizeof(char) == 1. That's because other types are measured in terms of char.
I see you using a lot of windows-esque notation in some of your other code. Are you working with chars or TCHARs?