Article View: borland.public.cppbuilder.nativeapi
Article #10241Re: How to fallback to a default resource when LoadLibrary fails?
From: Malte Persike
Date: Fri, 07 May 2004 03:39
Date: Fri, 07 May 2004 03:39
22 lines
1555 bytes
1555 bytes
On Thu, 6 May 2004 20:08:15 -0700, "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote: >Simply give your DLL a specific filename that your code always looks for. >If the file exists, call LoadLibrary() and store the handle. Then, when you >need a specific string, load the string from the DLL if available, otherwise >fallback to the EXE if not available or fails. AnsiString has a LoadStr() >method that can help you. For example (untested): >snip... Works like a charm. Thank you very much. Kind regards, Malte -- The above e-mail address is not valid. To contact me, please use my real e-mail address: malte AT t DASH online DOT de
Technical Details
Message-ID:
<i41m90dd1kqff81d7va3mk1ksr1gcu00jj@4ax.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mailReferences:
<uqrl909k4la2uga70tfr248ufjll2t6f6b@4ax.com> <409afef0@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a2edea02879f485 X-Google-Attributes: gid10cc67,public Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Malte Persike <me@privacy.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to fallback to a default resource when LoadLibrary fails? Date: Fri, 07 May 2004 05:39:16 +0200 Lines: 22 Message-ID: <i41m90dd1kqff81d7va3mk1ksr1gcu00jj@4ax.com> References: <uqrl909k4la2uga70tfr248ufjll2t6f6b@4ax.com> <409afef0@newsgroups.borland.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: http://news.individual.net/abuse.html X-Trace: news.uni-berlin.de bY34/n1zzXjs0JENyH1tigyrsI6hMpXme1tLFHs63EXnIqczbq X-Newsreader: Forte Free Agent 1.93/32.576 English (American)