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. ATL / WTL / STL
  4. ATL COM and DLL comparision........... [modified]

ATL COM and DLL comparision........... [modified]

Scheduled Pinned Locked Moved ATL / WTL / STL
c++comtutorialquestion
2 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.
  • V Offline
    V Offline
    vijay victory
    wrote on last edited by
    #1

    Hi Experts, I m bit confused about ATL COM applications..and DLL As I have already developed and using DLL(MFC/NON MFC) created in VC 6.0. So Is there any advantages if I covert this into ATL COM. what are they?? And if I m capable of doing so..i.e. Converting DLL(MFC/NON MFC) into ATL COM application then Whats type of care must have to be taken??? Like ........... 1> Global and local variable .or 2> Public/protected members of CLASS .or 3> Exported functions of DLL plz guide me..and clear my confusion.... Thanx in advance.. Victory

    modified on Wednesday, January 14, 2009 2:16 PM

    S 1 Reply Last reply
    0
    • V vijay victory

      Hi Experts, I m bit confused about ATL COM applications..and DLL As I have already developed and using DLL(MFC/NON MFC) created in VC 6.0. So Is there any advantages if I covert this into ATL COM. what are they?? And if I m capable of doing so..i.e. Converting DLL(MFC/NON MFC) into ATL COM application then Whats type of care must have to be taken??? Like ........... 1> Global and local variable .or 2> Public/protected members of CLASS .or 3> Exported functions of DLL plz guide me..and clear my confusion.... Thanx in advance.. Victory

      modified on Wednesday, January 14, 2009 2:16 PM

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      Using COM makes it easier to use your DLL with languages other than C++, for example VBA or VB.

      vijay.victory wrote:

      As I have already developed and using DLL(MFC/NON MFC) created in VC 6.0. So Is there any advantages if I covert this into ATL COM

      If it ain't broke, don't fix it.

      vijay.victory wrote:

      And if I m capable of doing so..i.e. Converting DLL(MFC/NON MFC) into ATL COM application then Whats type of care must have to be taken Like ........... 1> Global and local variable .or 2> Public/protected members of CLASS .or 3> Exported functions of DLL

      Sounds like you need to learn about COM first... COM defines a mechanism by which you can define and use objects in a (relatively) language independent manner. You expose objects through interfaces (a.k.a. pure abstract classes). Globals and locals aren't so much of an issue, as functionality is exposed in an OO way. Public/protected class members aren't an issue, as you only expose methods that implement (public!) interface methods. Exported functions aren't an issue - the COM specification tells you what functions to export (DllGetClassObject and DllRegisterServer)

      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