unicode error

Carsten A. Arnholm arnholm at offline.no
Sat Dec 22 16:14:47 PST 2007


Zorro wrote:
> #include "wx/wx.h"
>
> int main()
> {
> wxString s,z,a,b;
> s.Format(_("%s"),"abc");
> wxPrintf(_("S=[%s]\n"),s.c_str());
> return 0;
> };
> =======output=======
> $ none
> S=[]
> =============
> sometime wxPrintf noting show any strings!

Hi,

The documentation for wxString says that "Format" is a static function that 
returns a wxString. You are not handling the return value. I think you 
probably mean to use "wxString::Printf" instead of "wxString::Format":

s.Printf(_("%s"),"abc");

Regards
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457










More information about the wx-users mailing list