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. COM
  4. Support for ActiveX in MFC projects

Support for ActiveX in MFC projects

Scheduled Pinned Locked Moved COM
c++comquestionlearning
3 Posts 2 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.
  • E Offline
    E Offline
    Ed01
    wrote on last edited by
    #1

    Hi, I've created an MFC project (a Single document application) in Visual C++ 6.0 and I didn't check the "ActiveX support" box. And by now, I have to insert an ActiveX control in my project ! Of Course, It doesn't work... :(( So, is there a way to add Active X support without restarting my project from scratch ? Thanks...

    S 1 Reply Last reply
    0
    • E Ed01

      Hi, I've created an MFC project (a Single document application) in Visual C++ 6.0 and I didn't check the "ActiveX support" box. And by now, I have to insert an ActiveX control in my project ! Of Course, It doesn't work... :(( So, is there a way to add Active X support without restarting my project from scratch ? Thanks...

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      Simplest way is to create two dummy projects, one just like your existing one, with no ActiveX support, and a second with the ActiveX support on. Then just use WinDiff on the files (including the DSP) to see what changes you need to make. Steve S

      E 1 Reply Last reply
      0
      • S Steve S

        Simplest way is to create two dummy projects, one just like your existing one, with no ActiveX support, and a second with the ActiveX support on. Then just use WinDiff on the files (including the DSP) to see what changes you need to make. Steve S

        E Offline
        E Offline
        Ed01
        wrote on last edited by
        #3

        thanks, I won a lot of time... For anyone who has the same problem, you just have to add AfxEnableControlContainer(); at the beginning of the InitInstance() function in your App class ! :-D

        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