Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Raising COM events in C++?

Status
Not open for further replies.

thesleepylizard

Programmer
Mar 18, 2002
41
AU
(Posted this to the "DCOM/COM" forum, but I'm not sure which one is appropriate why are there two??)

In VB6 it's really easy to write COM objects, and to raise events:

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top