I'm trying to call a function that requires safearrays as parameters.
I declared the safearray as such:
sCar = "102559"
SAFEARRAY *saAccession = NULL;
rgsabound.lLbound = 0;
rgsabound.cElements = 1
saAccession = SafeArrayCreate(VT_BSTR, 1, rgsabound);
hresult = SafeArrayPutElement(saAccession, &i, sCar.AllocSysString());
My fuction called is:
m_oRSControlDict->QueryReportCreationForOrders(saAccession, saRelateId, saUnfinishedId,ReportAction, FailReason);
The error I'm getting is "Cannot convert parameter1 from "SAFEARRAY*" to "SAFEARRAY**"
Anyone have any ideas?