Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7633281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:50:20+00:00 2026-05-31T06:50:20+00:00

Whenever I create an new dialog in Visual Studio, it sets the Language property

  • 0

Whenever I create an new dialog in Visual Studio, it sets the Language property to English (Canada), same as my system default. However, I have a third party MFC library that’s rather picky, and decides to crash whenever I try to display such a dialog. The solution to the crash is to use English (United States) as the language. I would like for my dialogs to default to English (United States) when I create them. How do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T06:50:22+00:00Added an answer on May 31, 2026 at 6:50 am

    There is no official way to do exactly what you want, the default resource language and sublanguage depend on the AFX_TARG_XXX macro, which in turn depends on your system default locale.

    However there is kind of hack. Apply it on your own risk.

    1) Close Visual Studio.

    2) Open your resource file in the Notepad.

    3) Replace

    #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
    LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_CAN
    

    with

    #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
    LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
    

    4) Save

    This will change the language of all your existing resources.

    5) Go to C:\Program Files\Microsoft Visual Studio 10.0\VC\VCWizards\AppWiz\MFC\Application\templates

    6) There should be folder named 4105. This is the folder for Canadian resources. Move it to some other place. Do not delete it – when you will want to return to Canadian English as your sublanguage, move it back.

    7) Open your VS – now US English should be your default sublanguage for all the new resources.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whenever I create a new project in the Visual Studio 2010 Release Candidate, for
Whenever I create a new Empty MVC3 Web Application project in Visual Studio 2010
Visual Studio will automatically create using statements for you whenever you create a new
I'd like to use Qt inside the visual studio IDE, however whenever I create
We're using Perforce and Visual Studio. Whenever we create a branch, some projects will
I want code to run whenever I create a new object. For example, see
In eclipse, whenever I create a new C++ class, or C header file, I
I'm having problems with the code below. Whenever I create a new instance of
I want to have a new console open whenever I create a new thread
At the moment, whenever I need a custom dialog, however simple, I use Delphi's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.