T
Tony_comm
Unregistered / Unconfirmed
GUEST, unregistred user!
是对照BCB6自己带的例子做的,例子完全正常运行,而我的确不行,
BORLAND 还是很厉害的!!!!!!!
server:
CORBA::Any* HOBServerImpl::GetCustomers(CORBA::Boolean _metadata)
{
dm->CustomerQuery->Close();
dm->CustomerQuery->Open();
TProvider * p = new TProvider(NULL);
p->DataSet = dm->CustomerQuery;
CORBA::Any_var any = SAFEARRAYToAny(p->Data);
delete p;
return CORBA::Any::_duplicate(any);
}
client:
CORBA::Any_var anyData = hOBServer->GetCustomers(true);
OleVariant varData = AnyToSAFEARRAY(anyData);
dm->ClientDataSet1->Data = varData;
<----------此句报错
//dm->ClientDataSet1->Open();
BORLAND 还是很厉害的!!!!!!!
server:
CORBA::Any* HOBServerImpl::GetCustomers(CORBA::Boolean _metadata)
{
dm->CustomerQuery->Close();
dm->CustomerQuery->Open();
TProvider * p = new TProvider(NULL);
p->DataSet = dm->CustomerQuery;
CORBA::Any_var any = SAFEARRAYToAny(p->Data);
delete p;
return CORBA::Any::_duplicate(any);
}
client:
CORBA::Any_var anyData = hOBServer->GetCustomers(true);
OleVariant varData = AnyToSAFEARRAY(anyData);
dm->ClientDataSet1->Data = varData;
<----------此句报错
//dm->ClientDataSet1->Open();