Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Localized Message Box

Posted on 1999-07-14
Medium Priority
Last Modified: 2013-11-20
I have written a program which displays english/japanese dialog box depending on current locale information.
The dialog box is loaded from a  dll. This Dialog box contains some edit box to input some integers with range specified(using class wizard).

My problem is that :

When I run this program in japanese machine and  the  integer entered in the dialog box is not in the specified range and    "OK" button is pressed  the message box  comes up in "English"  asking to enter the integer in the given range. All other strings are in Japanese

Any one know how to change Validation  message  to Japanese.

Question by:pran071199
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 1310015
do the Validation  of the range by yourself. Fast and easy!

Expert Comment

ID: 1310016
well u are usinf probably DDX to check the range, if that right, windows is using its default messagebox, which probably in english.

try to check the range by yourself, erase the DDX/DDV entry for the range, and check the range by your self after the focus is lost from the edit control.
that way you'll be able to place a customize message box

Author Comment

ID: 1310017
I  cannot accept this answer.

I have lot of edit box with validation check  in diffrent files.If I have to do validtaion check myself I will have to add  code.

Anyone know how to solve it without changing the code or with minimum code change..

LVL 15

Accepted Solution

Tommy Hui earned 300 total points
ID: 1310018
All of the validators use AfxMessageBox to display their messages. AfxMessageBox() in turn calls your application's DoMessageBox() which is a virtual function you can override. The default behavior is to call ::MessageBox(). You can override DoMessageBox() to do whatever you want.

Featured Post

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA:…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question