🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #96

Re: Resurce DLLs in a subfolder

#96
From: Alan Bellingham
Date: Tue, 15 Nov 2005 13:13
40 lines
2640 bytes
"Peter" <Will_Bounce_So_Use_My_First_Name@Smart-Projects.net> wrote:

>Well ..
>That's not how I do it.
>In fact I didn't even know it could be done this automated.
>
>I have the user select a language (or have the code do it for him based on 
>installer for instance)
>
>My language dlls *are* in a different directory.
>
>I simply load the dll of my choice and pass the handle to my own LoadString 
>function, yet I believe you can just as easily use this function then :
>
>int LoadString(
>
>    HINSTANCE hInstance, // handle of module containing string resource
>    UINT uID, // resource identifier
>    LPTSTR lpBuffer, // address of buffer for resource
>    int nBufferMax  // size of buffer
>   );

Ah. True, you can do this, and if you really need the control, it's
probably doable, though don't ask me how you get DFMs to load that way.

If you're not gong the TForm/VCL route, but MFC, WTL or raw Win32, then
there are ways. But for now, I'm assuming the OP is using Borland's own
way to do it, as otherwise he'd be explicitly finding the resource DLL
in the first place, and the question would be trivial.

Alan Bellingham
Chief Software Developer
-- 
Tel: +44 (0) 1763 248866
Fax: +44 (0) 1763 246000
Email: alanb@episys.com
Web: www.episys.com
UK Office: Episys Ltd, Newark Close, Royston, Hertfordshire, SG8 5HL, UK
North America Office: Episys, 200 South Wacker Drive, Suite 3100,
Chicago, IL 60606, USA
Technical Details
Message-ID: <4anjn15fgojme2kpsh6j8vpb981pjmenon@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <437780fe@newsgroups.borland.com> <43789416$1@newsgroups.borland.com> <4378c0f0@newsgroups.borland.com> <4378c3fa$1@newsgroups.borland.com> <bfjhn15ljo4kp5bc63fg5g8h2mg01vf9pm@4ax.com> <4379db02@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,85baf43614268ac1
X-Google-Attributes: gid10297d,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Alan Bellingham <alanb@episys.com>
Newsgroups: borland.public.cppbuilder.internationalization
Subject: Re: Resurce DLLs in a subfolder
Date: Tue, 15 Nov 2005 13:13:36 +0000
Reply-To: alanb@episys.com
Message-ID: <4anjn15fgojme2kpsh6j8vpb981pjmenon@4ax.com>
References: <437780fe@newsgroups.borland.com> <43789416$1@newsgroups.borland.com> <4378c0f0@newsgroups.borland.com> <4378c3fa$1@newsgroups.borland.com> <bfjhn15ljo4kp5bc63fg5g8h2mg01vf9pm@4ax.com> <4379db02@newsgroups.borland.com>
X-Newsreader: Forte Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.129.251.253
X-Trace: newsgroups.borland.com 1132060370 193.129.251.253 (15 Nov 2005 05:12:50 -0700)
Lines: 40
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail