Using language DLLs for strings ONLY
- From: "Dan McCarty" <dmccarty@xxxxxxxxx>
- Date: 30 Jan 2006 14:58:35 -0800
(Cross-posted to ms.public.windowsce.embedded, sorry to people who read
both groups)
I've created a per-language DLL with some string resources and when my
app loads I'm trying to load the module and get the string resources
from there instead.
The test code that does it is simply:
HINSTANCE hRes = NULL;
hRes= LoadLibrary(_T("res0C0A.dll"));
if (hRes)
AfxSetResourceHandle(hRes);
My problem is that after setting the resource handle to the other DLL,
the app tries to load ALL resources from that DLL (which of course
fails).
It seems my options are either to create virtually identical DLL's
(with the exception of the translated strings) or to subclass CString
and read strings from the int'l DLL but other resource from the app's
resources.
Are these my only two options? Or am I overlooking something else?
Thanks,
Dan.
.
- Follow-Ups:
- Re: Using language DLLs for strings ONLY
- From: Joseph M . Newcomer
- Re: Using language DLLs for strings ONLY
- Prev by Date: Re: Puzzling font problem
- Next by Date: Re: Drag and Drop target in group box
- Previous by thread: Serialisation with ActiveX
- Next by thread: Re: Using language DLLs for strings ONLY
- Index(es):
Relevant Pages
|