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. C / C++ / MFC
  3. com

com

Scheduled Pinned Locked Moved C / C++ / MFC
3 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.
  • K Offline
    K Offline
    koteswara
    wrote on last edited by
    #1

    Hi, COM object is a binary file, and dll also binary file. what is difference between them (internally)? thanks koteswara

    B A 2 Replies Last reply
    0
    • K koteswara

      Hi, COM object is a binary file, and dll also binary file. what is difference between them (internally)? thanks koteswara

      B Offline
      B Offline
      Brian Hart
      wrote on last edited by
      #2

      Think of things this way... You know how, in a C++ program, you have all sorts of objects, like CWinApp, CMyView, CMainFrame, etc.? These are all called "code-level" objects; that is, the only thing that knows about them is the program's source code. COM takes objects to the next level, that is, the "binary level." Think again of a class, but this time another executeable program instantiates it in memory and calls its methods and properties. Although this time, the object is not in your code, it's in the binary. DLLs are simply libraries of functions that are like the .LIB files we use for linking things statically, only this time, the linking happens "dynamically", or during run time :) Cheers, Brian Hart

      1 Reply Last reply
      0
      • K koteswara

        Hi, COM object is a binary file, and dll also binary file. what is difference between them (internally)? thanks koteswara

        A Offline
        A Offline
        Alex Gorev
        wrote on last edited by
        #3

        Hi, COM object can be stored in the DLL or EXE file. When a COM object is stored in the DLL the only difference with the usual DLL file, is that the COM DLL must have several COM related methods: DllGetClassObject DllRegisterServer DllUnregisterServer DllCanUnloadNow See description of these functions in MSDN for more details... Regards, Alex Gorev, Dundas Software.

        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