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!

Convert char* to BSTR in Borland, how?

Status
Not open for further replies.

XxReaperxX

Programmer
Jul 15, 2001
8
US
Can someone please tell me hwo to convert a char* to a BSTR for COM stuff?

 
Here tis'
bool Table::seek(const String compareOperator,const long one,const String two,const String three)
{
Variant onev(one);
Variant twov(two);
twov.ChangeType(VT_BSTR);
Variant threev(three);
threev.ChangeType(VT_BSTR);
rs->Seek3(compareOperator,&onev,&twov,&threev);if ( !rs->NoMatch )return true;
else return false;
}
 
#include<windows.h> and use WideCharToMultiByte/MultiByteToWideChar John Fill
1c.bmp


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

Part and Inventory Search

Sponsor

Back
Top