Quote Originally Posted by merlvingian View Post
I guess I am a newbie Sorry for posting in the wrong section.
No problem.

But from the look of the code should it not throw an error on char to u_char conversion?
No. u_char is unsigned char, so casting u_char* to const char* is perfectly legitimate.

I guess my question then evolves into using depriciated c style type casting in a c++ program. QString seems very flexible does anyone know why such trickery is needed for something as common as a uchar?
Probably the conversion between u_char* and const char* is not handled by your compiler automatically.

And it's not that common to hold strings in u_char*. char* (or const char*) is the most straightforward container for character strings.