mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 08:09:28 +02:00
* LoadResString, PResStringRec, TResStringRec compatibility added
This commit is contained in:
parent
19e7ae8851
commit
f6021a93ba
@ -54,8 +54,12 @@ unit objpas;
|
|||||||
{ ParamStr should return also an ansistring }
|
{ ParamStr should return also an ansistring }
|
||||||
Function ParamStr(Param : Integer) : Ansistring;
|
Function ParamStr(Param : Integer) : Ansistring;
|
||||||
|
|
||||||
Type
|
{****************************************************************************
|
||||||
TResourceIterator = Function (Name,Value : AnsiString; Hash : Longint) : AnsiString;
|
Resource strings.
|
||||||
|
****************************************************************************}
|
||||||
|
|
||||||
|
type
|
||||||
|
TResourceIterator = Function (Name,Value : AnsiString; Hash : Longint) : AnsiString;
|
||||||
|
|
||||||
Function Hash(S : AnsiString) : longint;
|
Function Hash(S : AnsiString) : longint;
|
||||||
Procedure ResetResourceTables;
|
Procedure ResetResourceTables;
|
||||||
@ -68,6 +72,11 @@ Type
|
|||||||
Function GetResourceStringCurrentValue(TableIndex,StringIndex : Longint) : AnsiString;
|
Function GetResourceStringCurrentValue(TableIndex,StringIndex : Longint) : AnsiString;
|
||||||
Function SetResourceStringValue(TableIndex,StringIndex : longint; Value : Ansistring) : Boolean;
|
Function SetResourceStringValue(TableIndex,StringIndex : longint; Value : Ansistring) : Boolean;
|
||||||
|
|
||||||
|
{ Delphi compatibility }
|
||||||
|
type
|
||||||
|
PResStringRec=^AnsiString;
|
||||||
|
TResStringRec=AnsiString;
|
||||||
|
Function LoadResString(p:PResStringRec):AnsiString;
|
||||||
|
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
@ -342,6 +351,13 @@ begin
|
|||||||
ResourceStringTable.Tables[TableIndex]^.ResRec[StringIndex].CurrentValue:=Value;
|
ResourceStringTable.Tables[TableIndex]^.ResRec[StringIndex].CurrentValue:=Value;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Function LoadResString(p:PResStringRec):AnsiString;
|
||||||
|
|
||||||
|
begin
|
||||||
|
Result:=p^;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
Initialization
|
Initialization
|
||||||
ResetResourceTables;
|
ResetResourceTables;
|
||||||
finalization
|
finalization
|
||||||
@ -350,7 +366,10 @@ end.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.7 2001-08-19 21:02:02 florian
|
Revision 1.8 2001-10-22 21:19:33 peter
|
||||||
|
* LoadResString, PResStringRec, TResStringRec compatibility added
|
||||||
|
|
||||||
|
Revision 1.7 2001/08/19 21:02:02 florian
|
||||||
* fixed and added a lot of stuff to get the Jedi DX( headers
|
* fixed and added a lot of stuff to get the Jedi DX( headers
|
||||||
compiled
|
compiled
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user