Cells in ADOMD VC++
-
OS : Windows 95/98/NT. sp 5 Tool : VC++ 6.0 Hi there every one, I'm working on returning multi-dimensional result sets using MDX and ADOMD. I have openned up the CellSet with the snipet below: ICellsetPtr m_CellSet("ADOMD.Cellset"); m_CellSet->PutSource(pvSource); //pvSource MDX sql statement m_CellSet->ActiveConnection = m_connection; m_CellSet->Open(); The next thing is to get access to the data in individual Cells with: m_CellSet->GetItem(SAFEARRAY** idx); //prototype for method //I do; SAFEARRAY * CellArray; SAFEARRAYBOUND CellArrayBound; CellArrayBound.cElements = 1; CellArrayBound.lLbound = 0; CellArray = SafeArrayCreate(VT_I4, 1,CellArrayBound); m_Cell = m_CellSet->GetItem(&CellArray); I've tried various ways but I keep getting "incorrect parameters" There does not seem to be any example in VC++ on ADOMD. Has anybody out there done any ADOMD in VC++? I need help especially where Cells items are created Thanks] Michael