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:
Code:
hr = SafeArrayAccessData(pData, (void HUGEP* FAR*)&pDbl);
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).
And I unaccess the data:
Code:
hr = SafeArrayUnaccessData(pData);
Please help, my thesis in fact hinges on this working!
Will