none
Calling .NET Object using COM from C++ and passing BSTR -- returns E_NOINTERFACE RRS feed

  • Question

  •  Does anyone know of any examples that show calling a .NET object that is registered as a COM object where one of the interface method parameters is a BSTR or an VARIANT that is passed a variant set to a BSTR?

    I have tried many scenarios but always get an HRESULT return value of E_NOINTERFACE.

    I have a detailed posting at: http://forums.msdn.microsoft.com/en-US/csharpgeneral/thread/b37b7500-e0e1-4f93-9448-edc9de5c35e1 that shows source code of what I am doing, but cannot seem go get past the E_NOINTERFACE issue.

    When passing BSTRs between a NON managed C++ application that uses COM to communicate with the .NET object, are there any special interfaces that the .NET object must implement to support the BSTR marshalling?

    Any help would be appreciated.

    Thanks.
    Friday, August 22, 2008 5:16 AM

Answers

All replies