IonelBurtan
Programmer
Hi there,
How can COM object and a COM object wrraper dll generated with tlbimp. I use the generated dll in one simple C# test project, adding it to references.
the following piece of code:
...
MyComObjectClass cs = new MyComObjectClass();
object objReturned = cs.MyComMethod(param1, param2);
Now, in objReturned I have a 2 dimensional SAFEARRAY (packed as variant of course). The COM call works fine, I checked, but how can I read the result in C#.
I tried with Array class but this requires me to know the array dimensions beforehand(which I don't) and I cannot make a coresponding cast.
thanks,
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
How can COM object and a COM object wrraper dll generated with tlbimp. I use the generated dll in one simple C# test project, adding it to references.
the following piece of code:
...
MyComObjectClass cs = new MyComObjectClass();
object objReturned = cs.MyComMethod(param1, param2);
Now, in objReturned I have a 2 dimensional SAFEARRAY (packed as variant of course). The COM call works fine, I checked, but how can I read the result in C#.
I tried with Array class but this requires me to know the array dimensions beforehand(which I don't) and I cannot make a coresponding cast.
thanks,
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...