Home > Back-end >  Ansistring conversion would be how?
Ansistring conversion would be how?

Time:09-24

Warrior guidance, please, just learning BCB6, thank you

CodePudding user response:

AnsiString common use http://blog.sina.com.cn/s/blog_70441c8e0100rbvp.html for help,

CodePudding user response:

 
AnsiString a (" test ");
WideString b (a);
Would be * c=biggest _bstr ();

CodePudding user response:

Use WideString after casting directly using c_bstr WideString class () method,
Or use Windows API: MultiByteToWideChar or CRT: mbstowcs/mbstowcs_s function transformation,

CodePudding user response:

Thanks to the upstairs, thank you

CodePudding user response:

refer to the second floor silverpot response:
 
AnsiString a (" test ");
WideString b (a);
Would be * c=biggest _bstr ();
  • Related