PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

GapiDraw, STLport and Unicode

Hi, I recently just finished getting GapiDraw working beautifully on PPC 2003 emulator, my actual iPaq and under Win2k as well.

I also just finished compiling all the STLport libraries and they passed all the tests.

So just a few STL-related questions before I start hammering out serious code...

Say i'm using a stringstream to make my strings, convert some numbers here and there, and then I want to use DrawText to draw it on a buffer. How would I go around getting the TCHAR* string that's required as a parameter?

It's been a while since I've used C++ STL libraries, and I'm not entirely sure how the strings and streams work with unicode and with GapiDraw (TEXT() macro and the bunch).

Code:

stringstream sbufA;
sbufA << TEXT("This is a number: ") << 5;
stringstream sbufB;
sbufB << "Will everything still work normally if I use char* strings?";


Thanks a lot!