Hello,
I am working with COM interoperability. i.e, i am trying to access objects exported from unmaged code, from C# . But i am getting a Run-time error as
"Specified OLE variant is Invalid"
i go through many web-sites and forums. i failed to get my luck. Finally, i decided to post in microsoft forums, as this is belongs to microsoft product. Please help to solve this problem. Thanks in advance.
Regards,
Shaji Kumar.V.K

OLE Problem - An invalid VARIANT was detected during a conversion from an unmanaged VARIANT to a managed object
Michelle A.
Hello Ernst Kuschke,
I got the solution. However, thanks a lot on your response.
Regards,
Shaji
mrayyan
What is it you export Could you perhaps show us some code
It seems as if the unmanaged code you're calling is not getting a parameter of the type it expects.
Asaf W
Hi Everyone,
I was trying to get a SafeArray from C#, which is exported by unmanaged C++ COM object. But I 've got MDA message “An invalid VARIANT was detected during a conversion from an unmanaged VARIANT to a managed object”. Could you please give me some hints Shaji, how did you solve your problem
Thanks,
Ponytar