Article View: borland.public.cppbuilder.internationalization
Article #928Re: Loading Unicode from resource dll
From: FL
Date: Mon, 17 Sep 2001 01:33
Date: Mon, 17 Sep 2001 01:33
28 lines
1661 bytes
1661 bytes
You should use:
HINSTANCE DllHandle = LoadLibraryEx("resource.dll", 0,
LOAD_LIBRARY_AS_DATAFILE);
Francisco
Peter wrote:
>
> I want to do this :
> http://support.microsoft.com/support/kb/articles/Q196/8/99.asp
>
> But instead of loading it from the exe itself, I need the Unicode text
> resource from a dll.
>
> I tried :
>
> HINSTANCE DllHandle = LoadLibrary ("resource.dll") ;
>
> hRC = FindResourceEx(DllHandle,
> RT_STRING,
> MAKEINTRESOURCE(block) ,
> MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL));
>
> hRC always returns NULL but DllHandle is a valid handle to the resource
> dll.
>
> Any ideas ???
Technical Details
Message-ID:
<3BA552EA.3CAFF985@hotmail.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3ba4ffb6_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10297d,7ebfc362bf6b8904 X-Google-Attributes: gid10297d,public X-Google-Thread: f48da,7ebfc362bf6b8904 X-Google-Attributes: gidf48da,public X-Google-ArrivalTime: 2001-09-16 18:33:54 PST Message-ID: <3BA552EA.3CAFF985@hotmail.com> Date: Mon, 17 Sep 2001 09:33:30 +0800 From: FL <frleong@hotmail.com> X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en,zh-TW,zh-CN,ja MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internationalization,borland.public.delphi.internationalization Subject: Re: Loading Unicode from resource dll References: <3ba4ffb6_1@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 202.175.74.202 X-Trace: dnews 1000690355 202.175.74.202 (16 Sep 2001 18:32:35 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews