I’m coding in C# and I am working with a COM object that I earlier in C++ made this call:
COleVariant varBeforeEnd(DISP_E_MEMBERNOTFOUND, VT_ERROR);
hresult = pTemp->Add(knownObject, &varBeforeEnd );
How do I make the call in C#?
The IDE in VisualStudio say that the Add(…) function should have parameters like this:
Add(KownObject, ref object);
Any tip what to do with the second parameter? I’ve tried to block some primitive types like int and bool to an object, but I only get exceptions…
All tips are welcomed!
COleVariant varBeforeEnd(DISP_E_MEMBERNOTFOUND, VT_ERROR);
hresult = pTemp->Add(knownObject, &varBeforeEnd );
How do I make the call in C#?
The IDE in VisualStudio say that the Add(…) function should have parameters like this:
Add(KownObject, ref object);
Any tip what to do with the second parameter? I’ve tried to block some primitive types like int and bool to an object, but I only get exceptions…
All tips are welcomed!