OOPortal OOPortal


ATL Development   «Prev  Next»
Lesson 7 ATL project files
Objective Describe the ATL project files.

ATL Project Files

Our project has the following files.
Phbook files consists of Source Files, Header Files, Resource Files, External Dependencies
PhBook files consists of Source Files, Header Files, Resource Files, External Dependencies

PhBook.cpp

PhBook.cpp contains (DLL-based) server functions DllMain, DllCanUnloadNow, DllGetClassObject, DllRegisterServer, and DllUnregisterServer. It also contains the global declaration of CComModule in variable _Module and the object map.


PhBook.def


PhBook.def exports required functions from the DLL.

PhBook.idl, PhBook.h, PhBook.tlb

PhBook.idl, PhBook.h, and PhBook.tlb contain interface definitions for IReadPhBook and IManagePhBook, type library PHBOOKLib, and COM class PhBookObj.

PhBook.rc, Resource.h, PhBookObj.rgs

PhBook.rc, Resource.h, and PhBookObj.rgs contain our application's resources. These include the compiled type library (PhBook.tlb), version information, a registry resource (discussed below), and a string table.

PhBookObj.cpp, PhBookObj.h

PhBookObj.cpp and PhBookObj.h contain the declarations and code for CPhBookObj.

Stdafx.cpp, StdAfx.h

Stdafx.cpp and StdAfx.h define several constants and include other files. They are used to build a precompiled header file PhBook.pch.
Visual C++ 6.0 users will see also see file basetsd.h under External Dependencies. This file handles 64-bit wide types and values. We will not use 64-bit types in this course.