hi,
I am developing a VC++.NET console application. In that, i am using an OCX control. It has two events. I need to know how to use those events. In VB.NET, we can declare the objects with WITHEVENTS keyword. Any equivalent in VC++.NET. Please help me regarding this.
thanks and regards,

ocx control's events in VC++.net
GrindEspresso
Take a look at http://msdn2.microsoft.com/en-us/library/6f01ek09.aspx for handling events in VC++.
Also, you can have methods that throws exception that you can catch as well. Also, winforms have events hooked to the data sources, buttons, and so on.
Thanks, Ayman Shoukry VC++ Team