Article View: borland.public.cppbuilder.internationalization
Article #929Re: Loading Unicode from resource dll
From: Peter
Date: Mon, 17 Sep 2001 20:25
Date: Mon, 17 Sep 2001 20:25
46 lines
2377 bytes
2377 bytes
Thanks for the tip but NOPE !
It doesn't work !!
As far as I can judge it SHOULD work ... but it doesn't !
Peter
-------------------------------------------------------------
Peter Van Hove
Peter@Smart-Projects.net
www.Smart-Projects.net
www.IsoBuster.com
----- Original Message -----
From: FL <frleong@hotmail.com>
Newsgroups:
borland.public.cppbuilder.internationalization,borland.public.delphi.interna
tionalization
Sent: Monday, September 17, 2001 3:33 AM
Subject: Re: Loading Unicode from resource dll
> 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:
<3ba65ae2_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3ba4ffb6_1@dnews> <3BA552EA.3CAFF985@hotmail.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f48da,7ebfc362bf6b8904 X-Google-Attributes: gidf48da,public X-Google-Thread: 10297d,7ebfc362bf6b8904 X-Google-Attributes: gid10297d,public X-Google-ArrivalTime: 2001-09-17 13:46:53 PST Reply-To: "Peter" <Peter@Smart-Projects.net> From: "Peter" <Peter@Smart-Projects.net> Newsgroups: borland.public.cppbuilder.internationalization,borland.public.delphi.internationalization References: <3ba4ffb6_1@dnews> <3BA552EA.3CAFF985@hotmail.com> Subject: Re: Loading Unicode from resource dll Date: Mon, 17 Sep 2001 22:25:09 +0200 Lines: 49 Organization: Smart Projects.net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 NNTP-Posting-Host: 213.118.45.216 Message-ID: <3ba65ae2_2@dnews> X-Trace: dnews 1000757986 213.118.45.216 (17 Sep 2001 13:19:46 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews