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. basic problem about atl

basic problem about atl

Scheduled Pinned Locked Moved COM
helpc++tutorialquestion
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.
  • I Offline
    I Offline
    ice871117
    wrote on last edited by
    #1

    When I create an ATL project with appWizard in vs2005, the Dll generated by the code contains four export functions. They are : DllCanUnloadNow PRIVATE DllGetClassObject PRIVATE DllRegisterServer PRIVATE DllUnregisterServer PRIVATE What are those functions for? And how to use them to implement the code? What's the differeces between this Dll and those normal ones(say win32 style dlls)? Seeking for help.

    S M 2 Replies Last reply
    0
    • I ice871117

      When I create an ATL project with appWizard in vs2005, the Dll generated by the code contains four export functions. They are : DllCanUnloadNow PRIVATE DllGetClassObject PRIVATE DllRegisterServer PRIVATE DllUnregisterServer PRIVATE What are those functions for? And how to use them to implement the code? What's the differeces between this Dll and those normal ones(say win32 style dlls)? Seeking for help.

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

      For detail information please read Gale Rogerson... You will get all the basic updates about this...

      shailesh

      1 Reply Last reply
      0
      • I ice871117

        When I create an ATL project with appWizard in vs2005, the Dll generated by the code contains four export functions. They are : DllCanUnloadNow PRIVATE DllGetClassObject PRIVATE DllRegisterServer PRIVATE DllUnregisterServer PRIVATE What are those functions for? And how to use them to implement the code? What's the differeces between this Dll and those normal ones(say win32 style dlls)? Seeking for help.

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        DllGetClassObject is how other code creates COM objects that are implemented in the DLL. DllCanUnloadNow is called by COM to see whether the DLL can be unloaded from memory. DllRegister/UnregisterServer are used in self-registration, where the DLL adds/removes the registry entries needed for it to be visible to COM. Check out my Intro to COM[^] article for more details.

        --Mike-- Visual C++ MVP :cool: LINKS~! CP SearchBar v3.0 | C++ Forum FAQ "That's what's great about doing user interface work. No matter what you do, people will say that what you did was idiotic." -- Raymond Chen

        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