Re: messabebox(...) v afxmessanebox
Hey, that IS clever. I like it.
Tom
"David Ching" <dc@remove-this.dcsoft.com> wrote in message
news:RUMxj.5280$Mh2.5267@nlpi069.nbdc.sbc.com...
"Tom Serface" <tom.nospam@camaswood.com> wrote in message
news:AC61D2D6-2D60-4975-B937-452CBA667E9E@microsoft.com...
Doing multiple languages is almost always where professional applications
end up so it's good to plan on it ahead of time. If you use MFC you may
find a function like this to be useful:
CString GRS(int uID)
{
CString cs;
cs.LoadString(uID);
return cs;
}
This is not so useful in AfxMessageBox since you can pass in an ID
directly, but for other thing where you want to get a string from the
resource table like:
CString myString = GRS(IDS_STRING_I_WANT);
Would get the one for the correct language.
Well, I'll see you that and raise you:
CString myString(MAKEINTRESOURCE(IDS_STRING_I_WANT));
will replace your GRS() function! ;)
-- David