PRB: AppWizard Cannot Generate Resources in Sublanguages

Last reviewed: July 24, 1997
Article ID: Q148436
The information in this article applies to:
  • The MFC AppWizard included with: - Microsoft Visual C++, 32-bit Edition, versions 4.0, 4.1, 5.0

SYMPTOMS

AppWizard does not generate resources in sublanguages if the language setting of the operating system is set to a sublanguage instead of one of the five standard languages supported by Visual C++ 4.0.

CAUSE

AppWizard does not allow selection of sublanguage during application creation. If the language setting of the operating system is set to a sublanguage instead of a standard dialect, AppWizard does not use that information.

RESOLUTION

Change the "Language Settings" property for the resource to match the exact language setting for the operating system.

To do this for a dialog resource:

  1. Right-click the dialog's name in Resource View, and then click Properties.

  2. In Dialog properties window, change Language Settings to match the current setting for the operating system.

As an alternative, you can create a new copy of the resource in some other language by following these steps:

  1. Right-click the dialog's name in Resource View, and then click Insert Copy.

  2. In the Insert Resource Copy window, select the Language that exactly matches the language setting of the operating system.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

There are several ways to reproduce this behavior in Windows NT and Windows 95. In Windows 95, change Regional Settings from the Control Panel; select French (Swiss) as the language. Then restart your computer, and start Visual C++ version 4.0. Perform the following steps:

  1. Create a dialog-based application by using MFC AppWizard. AppWizard allows five choices of languages for resources. Sublanguages are not listed and cannot be specified. Select French (Standard) for the resource language.

  2. Generate the application.

  3. Change to Resource View.

  4. Open the main window dialog. It shows the label "French (French)" with the dialog's name.

Because the language setting for the resource does not match the language setting of the operating system, you may see another behavior where ClassWizard does not show Control IDs under the Member Variables Tab. For more information about this behavior, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q145997
   TITLE     : PRB: Resource Language Must Match Current System Language


Additional query words: international sublanguage
Keywords : WizardIss
Version : 4.0 4.1 5.0
Platform : NT WINDOWS
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.