Click here to Skip to main content
15,881,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello, we are developing software for a 'Smart Device' for WEC2013 using VS2013.

Basis is a C++ ATL COM Project (ATL Simple Object with Connection points) using the 'Smart Device' specific SDK, which results in a DLL.
That DLL is referend by a C# 'Device Application'-Project (.NET Compact 3.9). Everything compiles and builds fine. But connecting an ATL COM object event with the event handler of the C# client:

comObj.TestEvent += (_ISimpleComEvents_TestEventEventHandler) comObj_TestEvent;

crashes with the exception: "COM interface with IID '{00000000-0000-0000-0000-000000000000}' cannot be created due to the following error: No such interface supported."

Thanks for any suggestion.

What I have tried:

The same mimik is running fine, when build with VS2005 for Windows Embedded CE6.0 R3 for the same 'Smart Device'.
Posted
Updated 29-Jun-20 22:29pm
Comments
Member 14875971 30-Jun-20 10:03am    
Thanks Richard for your answer, I agree. But why does the connection point interface UUID appears to be zero? The connection point interface is defined with a 'reasonable' UUID in the IDL file. I used the vs2013 wizards as much as possible for setting up the project. And I did all steps simultaneously in another vs2013-session to set up the same project for (desktop) Windows 7, where everything, inclusive the event mechanism, is working fine.

1 solution

You cannot use a null GUID to refer to a COM interface. Check the actual value that it use to register itself.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900