2D SafeArrays- input data
I have a 2d safearray obtained from a variant, that needs to be populated with long values
I access the data:
Here I need to input the data at it's correct position, but I cannot get this to work properly. The function runs but I get random results (the values I get in the output resemble very loosely what is expected).
hr = SafeArrayAccessData(pData, (void HUGEP* FAR*)&pDbl);
And I unaccess the data:
Please help, my thesis in fact hinges on this working!
hr = SafeArrayUnaccessData(pData);