Article View: borland.public.cppbuilder.internationalization
Article #93Re: Resurce DLLs in a subfolder
From: Joe
Date: Mon, 14 Nov 2005 20:58
Date: Mon, 14 Nov 2005 20:58
59 lines
3153 bytes
3153 bytes
Thanks Alan, that's exactly what I feared, but I needed to hear it from somebody. I have one EXE plus six DLLs, inside the same folder. Let's imagine 6 languages per file, that makes 42 files... I would like to organize all this mess in separate folders, each folder one language. That was all. Maybe I could change the Borland-supplied code, but it's made in Pascal... Joe "Alan Bellingham" <alanb@episys.com> escribi๏ฟฝ en el mensaje news:bfjhn15ljo4kp5bc63fg5g8h2mg01vf9pm@4ax.com... > Hans Galema <notused@notused.nl> wrote: > >>Why ? Please show the code where you load the DLL. > > The code is this: > > > > There. > > Seriously - to get the program to use a resource DLL, you create a DLL, > you give it the relevant file extension (e.g. ENG for English GB, ENU > for English US, etc.), and you place it in the same directory as the > executable. You do not write any code (not in the loading executable, > anyway - you may want a stub DLL entry point in the DLL). You do not > change any settings. It just does it. > > The downside of this is that the Borland-supplied code does the > following: > > a) Finds own name > b) Removes file extension (OCX, DLL, EXE, whatever) > c) Finds locale code (ENG, whatever) > d) Appends locale code to base name and attempt to load DLL > e) If failed, tries with shortened locale name (e.g. EN) > f) If failed, uses resources internal to original executable. > > It's nicely automatic, but I know of no way to tell it to go look in a > different directory - though why you would want to, I'm not sure. I can > see ways to switch which resource DLL is used on the fly, but not where > to go for them. > > 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:
<4378fa2b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<437780fe@newsgroups.borland.com> <43789416$1@newsgroups.borland.com> <4378c0f0@newsgroups.borland.com> <4378c3fa$1@newsgroups.borland.com> <bfjhn15ljo4kp5bc63fg5g8h2mg01vf9pm@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,85baf43614268ac1 X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII From: "Joe" <wolfishr@telefonica.net> Newsgroups: borland.public.cppbuilder.internationalization References: <437780fe@newsgroups.borland.com> <43789416$1@newsgroups.borland.com> <4378c0f0@newsgroups.borland.com> <4378c3fa$1@newsgroups.borland.com> <bfjhn15ljo4kp5bc63fg5g8h2mg01vf9pm@4ax.com> Subject: Re: Resurce DLLs in a subfolder Date: Mon, 14 Nov 2005 21:58:51 +0100 Lines: 61 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 83.50.223.97 Message-ID: <4378fa2b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1132001835 83.50.223.97 (14 Nov 2005 12:57:15 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail