S
slush
Unregistered / Unconfirmed
GUEST, unregistred user!
我用VB写的COM,在VB和VBA中使用完全正常,但是在C++ Builder中调用,总出现“EAccessViolation”之类的错误,请问这类错误一般是怎么回事,谢谢!
一下是在 C++ Builder中调用:
AnsiString BH;
BSTR * sErr;
BH="#0096/TLJU";
try
{LegendSectionObj1->ShowSectionOfDevice(BSTR(WideString(BH)),sErr);
}
catch(Exception &e)
{
ShowMessage(e.Message.c_str());
};
一下是在 C++ Builder中调用:
AnsiString BH;
BSTR * sErr;
BH="#0096/TLJU";
try
{LegendSectionObj1->ShowSectionOfDevice(BSTR(WideString(BH)),sErr);
}
catch(Exception &e)
{
ShowMessage(e.Message.c_str());
};