MFC Smart Device DLL Wizard

This document describes the MFC Smart Device DLL Wizard, specifically the Overview page.

When you use the MFC DLL wizard to create an MFC DLL project, you get a working starter application that has built-in functionality that, when it is compiled, will implement the basic features of a DLLs. The MFC starter program includes C++ source (.cpp) files, resource (.rc) files, and a project (.vcproj) file. The code generated in these starter files is based on MFC. For detailed information, see the file details in Readme.txt that is generated for your project in Visual Studio, and Classes and Functions Generated by the MFC DLL Wizard.

Overview

This wizard page displays the current project settings for the MFC smart device DLL project you are creating. By default, the project has the following settings:

  • The first platform on the list is the target. In a default installation, the platform is Pocket PC 2003, but installing and uninstalling Windows CE 5.0 SDKs may change the default target for new applications.

  • The project is created as a regular DLL with MFC as statically linked.

To change the default platform, click Platforms in the left column of the wizard and make the changes that you want.

To change the default application settings, click Application Settings in the left column of the wizard and make the changes that you want.

After creating your new project, if the compiler issues a warning about defining _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, you have to define this flag in your main header file.

#define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA

This is the case especially for scenarios such as creating COM objects on Windows Mobile platforms, consuming Web services in Windows Mobile, and ATL COM objects.

See Also

Other Resources

Programming for Devices Using Visual C++