MFC Smart Device Application Wizard

The Microsoft Foundation Classes (MFC) Smart Device Application Wizard generates an application having built-in functionality that, when it is compiled, implements the basic features of a Windows CE executable (.exe) application.

Overview

The Overview page of the MFC Smart Device Application Wizard describes the current application settings for the MFC smart device applications that you are creating. By default, the wizard creates the project as follows:

  • Platforms

    • The default target platform for the project is the first platform in the platforms' list. In a default installation, the default platform is Pocket PC 2003, but installing and uninstalling Windows CE 5.0 SDKs may change the default target for new applications or add new targets such as Smartphone 2003.
  • Application Type

  • Document Template Strings

  • User Interface Features

    • The project implements a command bar.
  • Advanced Features

    • The project supports no advanced features.
  • Generated Classes

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++