ATL Development   «Prev 

ATL Project Files


Files PhBook.rc and Resource.h define our project's resources. Like many MS-Windows development projects, we include version and string resources.
A type library can also be included as a resource. Our type library is embedded within the DLL as a binary resource.
PhBookObj.rgs is a registration script. A registration script contains commands that describe how to register our COM objects. The registration script is compiled into a binary resource and included in the executable file. The ATL framework uses the script to register and unregister the server's objects.
(IDR_PhBookObj) in PhBookObj.h adds a method called UpdateRegistry into a COM class. UpdateRegistry is used by the ATL framework to register or unregister a COM object using the registration script.