How do I raise events.
-
I'm completely new to ATL:omg:. I use VB.:mad: I know C++ && API. I have next questions: 1.How do I define and raise an event from a class defined inside atl.:confused: 2.How do I raise errors to the clients that use my DLL.:confused: I'd appreciate if you give me some MSDN refferences or even articles inside CodeProject. - Any suggestions how to make subclassing for a window through the pass of hWnd parameter inside an ATL DLL? (I have some ideas that worked well under vb using API functions but I really appreciate the experience of the coders that visit this site, so I expect your opinion.) - I want to use ATL to build an DLL that takes as parameter the hWnd and subclass certain messages secified through an AttachMessage method. When the message is received I want to raise an event WndProc(...) into the caller.:confused: Thanx to all of you.:rose: I have a lot to learn from you. Cosmin Amza
-
I'm completely new to ATL:omg:. I use VB.:mad: I know C++ && API. I have next questions: 1.How do I define and raise an event from a class defined inside atl.:confused: 2.How do I raise errors to the clients that use my DLL.:confused: I'd appreciate if you give me some MSDN refferences or even articles inside CodeProject. - Any suggestions how to make subclassing for a window through the pass of hWnd parameter inside an ATL DLL? (I have some ideas that worked well under vb using API functions but I really appreciate the experience of the coders that visit this site, so I expect your opinion.) - I want to use ATL to build an DLL that takes as parameter the hWnd and subclass certain messages secified through an AttachMessage method. When the message is received I want to raise an event WndProc(...) into the caller.:confused: Thanx to all of you.:rose: I have a lot to learn from you. Cosmin Amza
Answer Q1.http://msdn.microsoft.com/library/en-ccore/html/vcconATLEventHandling.asp Q2.AtlReportError() or CComCoClass::Error()