I need to pass an empty array of options to a DLL written in C (and available for all versions of Windows), and the C code (which I cannot control and cannot edit) will populate the empty array of options using its some return values.
Basically, when I try to do this - the ByRef array is always empty when it should contain the function / subtitle results (if I do the same in .NET, it works).
I think I need to make a custom declaration so that VB knows how to call the C function, or?
This is how the C. sub-function is declared. Given this, what do I need to do so that C can use my empty array correctly and am returning the results?
HRESULT InvokeAction(
[in] BSTR bstrActionName,
[in] VARIANT varInActionArgs,
[in, out] VARIANT *pvarOutActionArgs,
[in, out] VARIANT *pvarRetVal
);
: http://msdn.microsoft.com/en-us/library/aa382237(VS.85).aspx