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. ActiveX + DLL

ActiveX + DLL

Scheduled Pinned Locked Moved C / C++ / MFC
comhelp
5 Posts 2 Posters 1 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.
  • P Offline
    P Offline
    PaulNeyman
    wrote on last edited by
    #1

    Hallo. I've created an activeX control, now I need to put this control on a dialog. It seem's easy, but I need to creat a dll library where are two functions Start(CRect rect,CWnd pParentWnd) and CloseShow(). A dialog has a button and when you click it it calls Start(CRect,CWnd). I've spent a lot of on that. Help me if you can.

    S 1 Reply Last reply
    0
    • P PaulNeyman

      Hallo. I've created an activeX control, now I need to put this control on a dialog. It seem's easy, but I need to creat a dll library where are two functions Start(CRect rect,CWnd pParentWnd) and CloseShow(). A dialog has a button and when you click it it calls Start(CRect,CWnd). I've spent a lot of on that. Help me if you can.

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      How you host an ActiveX control would depend on when libraries you're using - ATL, MFC, etc. Steve

      P 1 Reply Last reply
      0
      • S Stephen Hewitt

        How you host an ActiveX control would depend on when libraries you're using - ATL, MFC, etc. Steve

        P Offline
        P Offline
        PaulNeyman
        wrote on last edited by
        #3

        Using MFC.

        S 1 Reply Last reply
        0
        • P PaulNeyman

          Using MFC.

          S Offline
          S Offline
          Stephen Hewitt
          wrote on last edited by
          #4

          In MSVC6:  1. "Project->Add To Project->Components and Controls..."  2. Open "Registered ActiveX Controls" folder.  3. Pick control.  4. Click "Insert".  5. Press "OK".  6. Press "Close". An icon for the new control will appear on the dialog editors controls toolbar. Proceed as you would for other dialog controls. Steve

          P 1 Reply Last reply
          0
          • S Stephen Hewitt

            In MSVC6:  1. "Project->Add To Project->Components and Controls..."  2. Open "Registered ActiveX Controls" folder.  3. Pick control.  4. Click "Insert".  5. Press "OK".  6. Press "Close". An icon for the new control will appear on the dialog editors controls toolbar. Proceed as you would for other dialog controls. Steve

            P Offline
            P Offline
            PaulNeyman
            wrote on last edited by
            #5

            Thanks, but the problame is not in that. I've connected the ActiveX, showed it on my parent CWnd, but when I create it CWnd * m_chiled;// is in header m_chiled = new MyContral(); I have memory leak, I need to alloc memory for veriables of DLL.

            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