Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to return an object pointer from an ActiveX control

How to return an object pointer from an ActiveX control

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomtutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I have an ActiveX control CPeopleCtrl. CPeopleCtrl contains method CHuman * GetHuman(BOOL manWomen) that export a male or a women. How can I add an external method or property for this class method? I don't know how to expose CHuman...:confused: I'm using VC 6.0 Thanks in advance

    U S 2 Replies Last reply
    0
    • L Lost User

      I have an ActiveX control CPeopleCtrl. CPeopleCtrl contains method CHuman * GetHuman(BOOL manWomen) that export a male or a women. How can I add an external method or property for this class method? I don't know how to expose CHuman...:confused: I'm using VC 6.0 Thanks in advance

      U Offline
      U Offline
      User 33952
      wrote on last edited by
      #2

      An example is DataGrid control activex from microsoft. The control has a method or property GetColumns which return an reference to CColumns. How Microsoft do that? CColumns is not a control... I don't know what is it...

      1 Reply Last reply
      0
      • L Lost User

        I have an ActiveX control CPeopleCtrl. CPeopleCtrl contains method CHuman * GetHuman(BOOL manWomen) that export a male or a women. How can I add an external method or property for this class method? I don't know how to expose CHuman...:confused: I'm using VC 6.0 Thanks in advance

        S Offline
        S Offline
        Sheng Jiang
        wrote on last edited by
        #3

        See TN065: Dual-Interface Support for OLE Automation Servers http://msdn.microsoft.com/library/en-us/vclib/html/_MFCNOTES_TN065.asp[^] http://blog.joycode.com/jiangsheng http://blog.csdn.net/jiangsheng Command what is yours Conquer what is not ---Kane

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups