Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
Re: Ressourcen aus anderen Pe Dateien auslesen
18. Sep 2008, 13:38
Hi,
Mach es der Übersicht und dem Verständnis wegen so:
Delphi-Quellcode:
interface
type
TResourceName = record
ResType: PChar;
ResTypeName: string;
end;
var
// Mappingliste von Typen zu Namen
ResourceTypeDefaultNames: array[0..20] of TResourceName =
(
(ResType: RT_ACCELERATOR; ResTypeName: 'RT_ACCELERATOR'; ),
(ResType: RT_ANICURSOR; ResTypeName: 'RT_ANICURSOR'; ),
(ResType: RT_ANIICON; ResTypeName: 'RT_ANIICON'; ),
(ResType: RT_BITMAP; ResTypeName: 'RT_BITMAP'; ),
(ResType: RT_CURSOR; ResTypeName: 'RT_CURSOR'; ),
(ResType: RT_DIALOG; ResTypeName: 'RT_DIALOG'; ),
(ResType: RT_DLGINCLUDE; ResTypeName: 'RT_DLGINCLUDE'; ),
(ResType: RT_FONT; ResTypeName: 'RT_FONT'; ),
(ResType: RT_FONTDIR; ResTypeName: 'RT_FONTDIR'; ),
(ResType: RT_GROUP_CURSOR; ResTypeName: 'RT_GROUP_CURSOR'; ),
(ResType: RT_GROUP_ICON; ResTypeName: 'RT_GROUP_ICON'; ),
(ResType: RT_HTML; ResTypeName: 'RT_HTML'; ),
(ResType: RT_ICON; ResTypeName: 'RT_ICON'; ),
(ResType: RT_MANIFEST; ResTypeName: 'RT_MANIFEST'; ),
(ResType: RT_MENU; ResTypeName: 'RT_MENU'; ),
(ResType: RT_MESSAGETABLE; ResTypeName: 'RT_MESSAGETABLE'; ),
(ResType: RT_PLUGPLAY; ResTypeName: 'RT_PLUGPLAY'; ),
(ResType: RT_RCDATA; ResTypeName: 'RT_RCDATA'; ),
(ResType: RT_STRING; ResTypeName: 'RT_STRING'; ),
(ResType: RT_VERSION; ResTypeName: 'RT_VERSION'; ),
(ResType: RT_VXD; ResTypeName: 'RT_VXD'; )
);
Michael "Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
|
|
Zitat
|