thanks everyone, everything is fine i have use this
CString ParentNode;
ParentNode.PutAsciiString(sEname.c_str());
thanks again ! ; -)
andreas gebhardt <gebhardt(at)betacarotin.de> a écrit :
For the narrow version of basic_string you could use PutAsciiString.
std::string std_narrow_str = "convert me";
XSI::CString x_str;
x_str.PutAsciiString( std_narrow_str.c_str() );
Application().LogMessage( x_str, siCommentMsg );
Halfdan Ingvarsson wrote:
> CString bob = sEname.c_str();
>
> - ½
>
> ________________________________
>
> From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of dominic
bélanger
> Sent: 06-Apr-2008 22:50
> To: xsi(at)Softimage.COM
> Subject: HAHA now how to convert a std::string to XSI::CString
>
>
> hi, now im good to go convert a CString to string ,but now i have to convert
>
> string sEname = NodePtr2->GetNodeName();
>
> to CString , if im doing this
>
> string sEname = NodePtr2->GetNodeName();
>
> CString Patate = sEname;
>
> for sure it will not easy like this , i had an error like can not convert a std::string to XSI::CString
>
> if anyone have an idea thanks
>
> ________________________________
>
> Découvrez les styles qui font sensation sur Yahoo! Québec Avatars
>
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
#32;
Devenez un meilleur amigo grâce à Yahoo! Courriel