The Windows CE Toolkit for Visual C++ 6.0 provides two wizards for the Active Template Library for Windows CE: WCE ATL COM AppWizard and WCE ATL Object Wizard.
Use the WCE ATL COM AppWizard to create a new ATL project. Similar to the WCE MFC AppWizard, the WCE ATL COM AppWizard generates some of the generic code common to all ATL projects. It provides a number of global functions and a globally declared instance of CComModule.
The DllMain function is the dynamic-link library (DLL) equivalent of WinMain. The DllRegisterServer and DllUnregisterServer functions register and deregister the server’s components in the registry. The CComModule object maintains information about all the objects managed by the server. There must be exactly one instance of CComModule in every ATL project.
The project generated by the WCE ATL COM AppWizard initially contains no COM components. After the project is created, you can use the Windows CE ATL Object Wizard to add components. The components are derived from various templatized classes that provide default implementations of commonly used COM interfaces. The Windows CE ATL Object Wizard generates the necessary header file declarations, IDL definitions, and COM interface map entries for added components. You write the methods that implement the functionality that is specific to your components. You also can override the implementations of standard interface methods inherited from the ATL classes.
You generally include the ATL for Windows CE source code directly in your application, but you also can use it as a shared DLL by linking your application with Atlce.dll.
For more information on the ATL wizards, see Programmer’s Guide