home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 October
/
Chip_2001-10_cd1.bin
/
zkuste
/
delphi
/
kompon
/
d123456
/
CHEMPLOT.ZIP
/
TPlot
/
resourcefix2.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
2001-03-30
|
1KB
|
50 lines
From - Fri Mar 30 13:13:57 2001
From: Stefan Hoffmeister <Borland.Newsgroups@econos.com>
Newsgroups: borland.public.kylix.clx.components.writing
Subject: Re: Bug: LoadStr(Ident: Integer) does not load correct string
Date: Thu, 29 Mar 2001 14:01:48 +0200
Organization: .
Message-ID: <sm86ctg77mvk0rhfackp6udjm2j5fp5q5q@4ax.com>
References: <3AC2A751.B59F0C18@molsci.csiro.au>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.226.148.65
X-Trace: 29 Mar 2001 03:59:38 -0800, 62.226.148.65
Lines: 31
Path: dnews!62.226.148.65
Xref: dnews borland.public.kylix.clx.components.writing:169
: Mat Ballard <mat.ballard@molsci.csiro.au> wrote:
>Every LoadStr from
>there is also out by 16.
What happens if you change the code in SysUtils as below?
Theoretically, this could work.
**********************
function EnumStringModules(Instance: Longint; Data: Pointer): Boolean;
{$IFDEF LINUX}
var
rs: TResStringRec;
Module: HModule;
begin
Module := Instance;
rs.Module := @Module;
with PStrData(Data)^ do
begin
rs.Identifier := Ident + 16; // <--- Add "+16" here
Str := LoadResString(@rs);
Result := Str = '';
end;
end;
{$ENDIF}
--
NNQ - Quoting Style in Newsgroup Postings
http://web.infoave.net/~dcalhoun/nnq/nquote.html