ActiveX control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lucy Ludmiller

    #1

    ActiveX control

    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.


  • Bob

    #2
    Re: ActiveX control

    Using ATL is the easiest way.
    http://www.codeguru.com/Cpp/COM-Tech...rticle.php/c17



    Then see this
    "Lucy Ludmiller" <no.spam@myplac e.comwrote in message
    news:sPWdnX6cQ4 3aNGnZRVnyjQ@bt .com...
    >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.
    >
    >

    Comment

    • Lucy Ludmiller

      #3
      Re: ActiveX control



      Bob wrote:
      Using ATL is the easiest way.
      http://www.codeguru.com/Cpp/COM-Tech...rticle.php/c17
      >

      >
      Then see this
      "Lucy Ludmiller" <no.spam@myplac e.comwrote in message
      news:sPWdnX6cQ4 3aNGnZRVnyjQ@bt .com...
      >
      >>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.
      >>
      >>
      >
      >
      >
      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

      Comment

      Working...