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. Active X problem

Active X problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpcom
5 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.
  • M Offline
    M Offline
    Mughi
    wrote on last edited by
    #1

    I have downloaded an MDI project. The PROBLEM is when I insert any ActiveX component or control to any of the dialogs and run, Iam unable to VIEW the dialog to which I had added the ActiveX. That specific dialog is not popping up. The PROBLEM occurs specific to THIS PROJECT only. Is there any project settings to be done for enabling ActiveX controls. Please help me out. I thank u in advance. Mughi

    P E 2 Replies Last reply
    0
    • M Mughi

      I have downloaded an MDI project. The PROBLEM is when I insert any ActiveX component or control to any of the dialogs and run, Iam unable to VIEW the dialog to which I had added the ActiveX. That specific dialog is not popping up. The PROBLEM occurs specific to THIS PROJECT only. Is there any project settings to be done for enabling ActiveX controls. Please help me out. I thank u in advance. Mughi

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      is there a call to OleInit() in the initinstance of the application.


      Still Alive!!! Thank you God.

      M 1 Reply Last reply
      0
      • M Mughi

        I have downloaded an MDI project. The PROBLEM is when I insert any ActiveX component or control to any of the dialogs and run, Iam unable to VIEW the dialog to which I had added the ActiveX. That specific dialog is not popping up. The PROBLEM occurs specific to THIS PROJECT only. Is there any project settings to be done for enabling ActiveX controls. Please help me out. I thank u in advance. Mughi

        E Offline
        E Offline
        Elmar Weber
        wrote on last edited by
        #3

        Add the command AfxEnableControlContainer(); in your Apps InitInstance()-Method !!! e.g. ///////////////////////////////////////////////////////////////////////////// // CMyApp initialization BOOL CMyApp::InitInstance() { AfxEnableControlContainer(); greets al

        M 1 Reply Last reply
        0
        • E Elmar Weber

          Add the command AfxEnableControlContainer(); in your Apps InitInstance()-Method !!! e.g. ///////////////////////////////////////////////////////////////////////////// // CMyApp initialization BOOL CMyApp::InitInstance() { AfxEnableControlContainer(); greets al

          M Offline
          M Offline
          Mughi
          wrote on last edited by
          #4

          THANK YOU for your help Mr.EIWE. I got it working.

          1 Reply Last reply
          0
          • P Prakash Nadar

            is there a call to OleInit() in the initinstance of the application.


            Still Alive!!! Thank you God.

            M Offline
            M Offline
            Mughi
            wrote on last edited by
            #5

            THANK YOU for your help Mr.PRAKASH. I got it working through AfxEnableControlContainer().

            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