VISUAL C++ / COM

LucR

Member
Hi,
I'm using the example (CIP-00-0001-3A - points) that diffused in the knowledge garden, however the return of the function this coming back a ERROR::

HRESULT CreateAndUseBusinessObject(IConnector* pConnector,IOneWorldInterface* ow,
long* lAccessNumber)
{
HRESULT hr;
IJDEAddressBookMBF* myAB=0;
ID0100041* ds=0;
IDispatch* idsptch=0;
............
_bstr_t bo("AddressBookMBF.JDEAddressBookMBF"); = OK
hr=pConnector->CreateBusinessObject(bo,*lAccessNumber,&idsptch); = OK
hr=idsptch->QueryInterface(IID_IJDEAddressBookMBF,(void**)&myAB); = OK
myAB->CreateAddressBookMasterMBFParameterset(&idsptch); = OK
hr=idsptch->QueryInterface(IID_ID0100041,(void**)&ds); = OK
hr=ds->Reset(); = OK
.............
VARIANT connectionId; = OK
connectionId.lVal = *lAccessNumber; = OK
hr=myAB->AddressBookMasterMBF((IDispatch **)&ds,ow,pConnector,connectionId); = ERROR

ERROR= hr = 80020008
...............
Any help would be greatly appreciated
 
Back
Top