Article View: borland.public.cppbuilder.nativeapi
Article #2274Re: Help: Problems with resource strings.
From: A Nonymous
Date: Mon, 19 Mar 2007 18:43
Date: Mon, 19 Mar 2007 18:43
27 lines
1523 bytes
1523 bytes
Bob Gonder <notbg@notmindspring.invalid> wrote in
news:tchtv21urvo96jf5cvpdflura0mg7ogqq9@4ax.com:
> A Nonymous wrote:
>
>> if (hlib)
>> {
>> // get data from a string table
>> Label->Caption.LoadString(hlib,1);
>
> Did you try LoadStr(hlib,1) instead?
>
Yes, LoadStr genreates AV...
> Alternative:
>
> TChar buffer[1024];
> LoadString( hlib,1, buffer, 1024 );
> Label->Caption = buffer;
>
This with (TCHAR) works... I am sure I tried this and it did not work. It
may have been the type of hlib I was using at the time. I tried HANDLE,
HINSTANCE, and THandle but I guess I just didn't get the right combination.
Thanks.
Technical Details
Message-ID:
<Xns98F88188024A5anonymoushotmailcom@207.105.83.66>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.germany.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<Xns98F872A803C84anonymoushotmailcom@207.105.83.66> <tchtv21urvo96jf5cvpdflura0mg7ogqq9@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,714830e17a60e95b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Help: Problems with resource strings. From: A Nonymous <anonymous@hotmail.com> References: <Xns98F872A803C84anonymoushotmailcom@207.105.83.66> <tchtv21urvo96jf5cvpdflura0mg7ogqq9@4ax.com> Message-ID: <Xns98F88188024A5anonymoushotmailcom@207.105.83.66> User-Agent: Xnews/5.04.25 NNTP-Posting-Host: 74.254.162.162 Date: 19 Mar 2007 10:43:58 -0800 X-Trace: newsgroups.borland.com 1174326238 74.254.162.162 (19 Mar 2007 10:43:58 -0800) Lines: 27 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.germany.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail