Archive for the ‘.NET 2008’ Category

.NET 2008 ATL COM DLL can’t fire events

Wednesday, July 22nd, 2009

After fiddling around with .NET 2008 ATL COM DLLs and creating events, the class object that implements the interface does not have any reference to the event.  After searching on the net, there were no solutions.  After reading the MSDN documents over and over (ATL tutorial, Step 5: Adding an Event), it mentioned to make sure that the IDL file contains the function.  I checked after I created it, but to my surprise… there is no function declaration.  I added it manually, then went back to the class, added the connection point, and finally… there’s the “Fire_” function.

Update: Nevermind… the tutorial does work.  I was not adding the function correctly.