PRB: Resolving '<App-name>' is not a Valid Windows CE App Error (177434)



The information in this article applies to:

  • Microsoft Visual C++ for Windows CE 1.0
  • Microsoft Windows CE Toolkit for Visual C++ 5.0
  • Microsoft Windows CE Toolkit for Visual C++ 6.0

This article was previously published under Q177434

SYMPTOMS

Attempting to run an application built with the products listed above results in the following message:
'<app-name>' is not a valid Windows CE application.
where <app-name> is the name of the application being run.

CAUSE

The application was not built for the correct processor platform.

RESOLUTION

You can determine what processor is used on a specific device by clicking [Start|Settings|System|General]. The processor type is displayed in the "System:" section under the heading "Processor Type:".

To build for a particular processor platform, your Visual C++ project must contain a configuration for that platform and the configuration must be the active configuration when you build the application.

  • Use the following steps to select the active configuration:

    • Choose [Build|Set Active Configuration...] from the Microsoft Developer Studio menu bar.
    • Select the configuration for the desired processor Platform and click [OK]. If the desired configuration is not present, use the next procedure in this article to add one.
  • Use the following steps to create a new configuration:

    • Choose [Build|Configurations...] and click the [Add...] button.
    • Choose the new processor platform in the "Platform:" field.
    • Choose a configuration name and a configuration to copy settings from, then click [OK].

STATUS

This behavior is by design.

Modification Type:MajorLast Reviewed:11/18/2003
Keywords:kbprb KB177434