Using ATL is the easiest way.
http://www.codeguru.com/Cpp/COM-Tech/atl/tutorials/article.php/c17
http://www.codeproject.com/atl/#ATL+Server
Then see this
>I want to build an ActiveX control using C++
>
> Does anyone have a link that can serve as a tutorial - a how to guide?
>
> Basically, I need to know how I may add properties, methods and events,
> and how I can pass data in the raised events.
Lucy Ludmiller - 29 Aug 2006 23:28 GMT
> Using ATL is the easiest way.
> http://www.codeguru.com/Cpp/COM-Tech/atl/tutorials/article.php/c17
[quoted text clipped - 9 lines]
>>Basically, I need to know how I may add properties, methods and events,
>>and how I can pass data in the raised events.
Thanks for that Bob, I got that bit done. Now I want to have an event
that passes an object as a pointer - however, when adding my event,
there is a fixed drop down box that does not allow me to type in the
corrcet data type (say MyObject*) - this is perhaps not suprising, since
MyObject will not be recognised in the IDL. Maybe I can pass the
pointer (opaquely), as a long ?
PS: I will be consuming this control in VB