String to BSTR

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

How to convert String object in to BSTR object in Managed C++.NET 2003?

Thanks for help

Regards,
Leonid
 
Leonid,
How to convert String object in to BSTR object in Managed C++.NET 2003?

You can use Marshal::StringToBSTR or SysAllocString (if you first
pin the managed string).



Mattias
 
Back
Top