basic problem about atl
-
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.
-
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.
For detail information please read Gale Rogerson... You will get all the basic updates about this...
shailesh
-
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.
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