I described struct in IDL file:
typedef [uuid(..)] struct tagUDT
{
long f1;
long f2;
} UDT;
and interface with a method:
interface ITest : IDiapatch
{
[id(1)] HRESULT TestIt([in, out] SAFEARRAY(UDT) * saUDT);
I compiled the object and registered it in COM+.
When I call it from VB, I have an error:
'Invalid procedure call or argument'
If I link the library as DLL it works.
Could you help me resolve the problem? (I don't want use VARIANT type).
typedef [uuid(..)] struct tagUDT
{
long f1;
long f2;
} UDT;
and interface with a method:
interface ITest : IDiapatch
{
[id(1)] HRESULT TestIt([in, out] SAFEARRAY(UDT) * saUDT);
I compiled the object and registered it in COM+.
When I call it from VB, I have an error:
'Invalid procedure call or argument'
If I link the library as DLL it works.
Could you help me resolve the problem? (I don't want use VARIANT type).