Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM in Borland vs VC++?

Status
Not open for further replies.

XxReaperxX

Programmer
Jul 15, 2001
8
US
Ok, I can use this COM object in VC++ but I can't in Borland.

The problem is this BSTR

in VC++ I can create a CString object, then use .AllocSysString() to convert it into a BSTR. Works fine...

But what can I do in Borland to do this same operation? I tried making a char[] and casting it with (BSTR) but it dosen't work, i'm guessing it needs to do some crazy conversions or something. Please help, thanks....

Vinh
 
use MultiByteToWideChar and WideCharToMultiByte. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top