I am searching information about COM.SafeArray and the use with .NET Function Call for example the call is:
ok = prova(byval Param1, COM.SafeArray Param2)
Param2 as String Array.
I want know the mode to set or get the Param2 value.
Thanks in advance for help
This is almost 2 year and nobody reply?
Never, I request unformation about com.safearray but I jave not received information
Well. first you can read about it on microsoft’s website here:
https://docs.microsoft.com/en-us/windows/desktop/api/oaidl/ns-oaidl-tagsafearray
It’s a data structure to wrap an array for passing around in COM.
COM.SafeArray in Xojo is matching structure for this.
pvData is the pointer to the data.
cDims is the number of dimensions, so you can find the bounds in rgsabound array.
Thank you very much, I read the indications given by Microsoft and I also put break points in the application to check the data that was passed to the dll without having a positive feedback in particular I needed to switch to a dll I wrote of arrays of strings and not I got the result I was looking for so I solved differently by passing a single string with the fields separated by comma and unpacking the string in dll, thank you anyway for your interest
Piero