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. How to add New ATL-object to MFC Application?

How to add New ATL-object to MFC Application?

Scheduled Pinned Locked Moved COM
c++csharpvisual-studiotutorialquestion
2 Posts 2 Posters 2 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 tried to add a new ATL-object to MFC Application (Microsoft Visual Studio 6.0). It is a usual process for ATL-Wizard. But I get exe-file only without proxy/stup dll and without automatic registration. Does anybody have experience how to make it? Thanks in advance ATL-buildman

    P 1 Reply Last reply
    0
    • L Lost User

      I tried to add a new ATL-object to MFC Application (Microsoft Visual Studio 6.0). It is a usual process for ATL-Wizard. But I get exe-file only without proxy/stup dll and without automatic registration. Does anybody have experience how to make it? Thanks in advance ATL-buildman

      P Offline
      P Offline
      pba_
      wrote on last edited by
      #2

      It depends of your interface definition file. If you use custom marshalling , the midl compiler will generate three files , which must be compiled in a dll. ( exp : from test.idl will generate test_i.c , test_p.c, and dlldata.c ). If the interface marshaller will be used only under WinNT.3.51 or w95, you should define in the dlldata.c the REGISTER_PROXY_DLL symbol. The generated .dll fully support automatic registration. If you don't want to use custom marshalling, you can use the universal marshaler, by adding oleautomation attribute to your interface ( if your interface use only data types supported by variants).

      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