Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Yes/No problem

Status
Not open for further replies.

tzzdvd

Programmer
Aug 17, 2001
52
IT
In my program I used this code to ask whether to do or not to do a thing.

[iResult=MessageBox("If you continue, you will loose any precedent modification.\r\n\r\n\t Continue anyway?","Request",MB_YESNO|MB_ICONQUESTION);
if (iResult==IDYES)
{
...
}[/i]

All is ok but there is a little problem: when the program visualizes the MessageBox it shows not "Yes" "No" button but "Si" "No" in Italian. I tried to use MB_OKCANCEL but i have "Ok" "Annulla" again in Italian.
All my program is in English and so I don't want anything in Italian. How can I compile all for English Language???? My Windows is in Italian: is this the problem? How can I solve it?

Thank's everybody
 
Yes, it is happening because your Windows is in italian. If you run your program under a Windows english version, it will show "Yes / No" and "OK / Cancel".
 
Just set the language of your app's resource to English. If it does not work, I suggest that you should build your own message box dialog :)

Hope this helped !!!

Thang.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top