"Can't convert wxCharBuffer to unsigned char *".
I'm on the trunk + MSVC + Windows XP.
Thank you.
> I just tried:
>
> unsigned char *test = (unsigned char *) str.ToAscii().data();
>
> and to my surprise, test is empty and *test is NULL.
I recommend reading about C++ temporaries and actually understanding what
is going on in the above line first. This will really be simpler than
asking the questions about the same problem again and again on the mailing
list during at least several months.
> I guess I need to use good, old C-style strcpy()....
Please don't, it's not without its pitfalls as well. Do everyone a favour
and use wxStrlcpy() instead at least.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/