Tony The Lion
Tony The Lion

Reputation: 63250

E_NOINTERFACE returned

I have a COM Client and a COM Server, the COM Server holds an Interface exposed by the client, now the client is actually just an EXE, how do I make sure that the Interface exposed by the client is visible to the Server?

Because when I call CoCreateInstance now on that interface in the server I get a E_NOINTERFACE and I suspect it's because there is no Proxy/stub dll for the client registered on the system.

Upvotes: 1

Views: 974

Answers (1)

sharptooth
sharptooth

Reputation: 170509

Yes, E_NOINTERFACE can be returned if COM can't marshal the interface. You can use Process Monitor to try to find what exactly is happening.

Upvotes: 1

Related Questions