thesleepylizard
Programmer
In VB6 it's really easy to write COM objects, and to raise events:
In C++, I want to do write a COM object in a COM library, and do exactly the same thing. But, I'm not sure how to declare, raise, and handle COM events in C++.
Any ideas? Or, can anyone point me in the right direction/documentation?
Thanks for your time,
-sleepy
Code:
Public Event SomethingImportantOccured (Data as string)
.
.
.
RaiseEvent SomethingImportantOccured ("Bingo!")
.
.
.
Private Sub ImportantObject_SomethingImportantOccured(Data as string)
'
End Sub
In C++, I want to do write a COM object in a COM library, and do exactly the same thing. But, I'm not sure how to declare, raise, and handle COM events in C++.
Any ideas? Or, can anyone point me in the right direction/documentation?
Thanks for your time,
-sleepy