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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC -> COM, ActiveX

MFC -> COM, ActiveX

Scheduled Pinned Locked Moved C / C++ / MFC
comc++question
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.
  • R Offline
    R Offline
    RK
    wrote on last edited by
    #1

    Is there any fast way to convert an MFC application into an ActiveX control or Com object?

    B 1 Reply Last reply
    0
    • R RK

      Is there any fast way to convert an MFC application into an ActiveX control or Com object?

      B Offline
      B Offline
      Bashir Irfan Malik
      wrote on last edited by
      #2

      Hi : Not sure about what specifically you are asking for. Because it depends upon your app architecture. Let me assume you are talking about a simple Dlg based Exe than Just Insert a new ATL object in it with all the default settings and here you go. Note that your app main thread can now be an owner of a COM object . Simply call CoCreateInstanceEx() from your client code and your COM object will be instantiated.. Anyway for your information. Any object inherited from IUnknown is called a COM object and a COM object which is self registering is called an ActiveX control (simple is that)

      R 1 Reply Last reply
      0
      • B Bashir Irfan Malik

        Hi : Not sure about what specifically you are asking for. Because it depends upon your app architecture. Let me assume you are talking about a simple Dlg based Exe than Just Insert a new ATL object in it with all the default settings and here you go. Note that your app main thread can now be an owner of a COM object . Simply call CoCreateInstanceEx() from your client code and your COM object will be instantiated.. Anyway for your information. Any object inherited from IUnknown is called a COM object and a COM object which is self registering is called an ActiveX control (simple is that)

        R Offline
        R Offline
        RK
        wrote on last edited by
        #3

        thanks! what I am trying to do is to move an existing document/view architecture MFC app into a form whereby it could be placed on an IE browser and do the same stuff...essentially, I have an existing MFC exe and I want to create an ActiveX out of it so it could be embedded into an html page and do the same stuff? thanks

        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