[Dev-C++] Fw: Converting char* to wxString
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Luis B. <lf...@ya...> - 2007-08-10 12:01:32
|
Ok, thanks it worked. And it was so simple.=0A=0ABest regards,=0A Bras= =0A=0A =0A=0A=0A----- Original Message ----=0AFrom: Lloyd <ll...@cd...= >=0ATo: dev...@li...=0ASent: Friday, August 10, 2007= 5:20:01 AM=0ASubject: Re: [Dev-C++] Converting char* to wxString=0A=0AOn T= hu, 2007-08-09 at 10:03 -0700, Luis Bras wrote:=0A> centerx=3Dtemp;=0A=0AI = think here is the error. centerx is a wxString and temp is char* and=0Athey= are incompatible data types. So if you want to assign=0A temp to=0Acenterx= do the following=0A=0A=0Acenterx=3DwxString::FromAscii(tempx);=0A=0A[stati= c wxString FromAscii(const char* s)]=0A=0ARegards,=0A Lloyd=0A=0A=0A=0A=0A= =0A=0A=0A=0A=0A=0A=0A=0A=0A =0A______________________________________= ______________________________________________=0ABuilding a website is a pi= ece of cake. Yahoo! Small Business gives you all the tools to get online.= =0Ahttp://smallbusiness.yahoo.com/webhosting |