Hi, I am having a problem declaring and passing a multidimensional array of floats as an argument to a function. Can someone help me with this problem? My code is enclosed. Any help appreciated.
float\* pData = new float\[nNumRows,2\];
for( int i = 0; i < nNumRows; i++ )
{
pData\[i\]\[0\] = ((CSodSpecData\*)pOdbSpecData)->m\_cvData\[i\].Real();
pData\[i\]\[1\] = ((CSodSpecData\*)pOdbSpecData)->m\_cvData\[i\].Imag();
}
lErrorCode = pService->serviceNotifyDataEventSet( pData\[0\], strSensorName );
// The function to store the data
CDFstatus CABCDEntryPointService::serviceNotifyDataEventSet(float\* dataSet, const CString& varName)