wxString - writing values into strings

Milan Babuskov milanb at panonnet.net
Mon Feb 11 04:58:23 PST 2008


raananb wrote:
> When compiled with gcc (ANSI mode) and with Watcom C++ both forms work (on
> windows).
> 
> If (wxChar*) should not be used, or if wxT() is far superior and safer, then
> make the specs say precisely that. 

You're right, but I don't think wx developers will change the docs now, 
when wxWidgets 3.0 will not need that anymore.

Here are some simple rules for wxString usage which we applied to 
cross-platform (Windows, Linux, Mac, FreeBSD, Solaris) program that 
compiles and works fine in both Unicode and ANSI builds, and also 
interfaces to other libraries that use char* and std::string:

http://www.flamerobin.org/dokuwiki/doku.php?id=wiki:wxstring

HTH

-- 
Milan Babuskov
http://www.flamerobin.org




More information about the wx-users mailing list