Einzelnen Beitrag anzeigen

Benutzerbild von scrat1979
scrat1979

Registriert seit: 12. Jan 2007
Ort: Sulzbach a.d. Murr
1.028 Beiträge
 
Delphi 10.4 Sydney
 
#4

Re: Komponentenerstellung: Bild aus DCR laden

  Alt 3. Apr 2007, 22:40
Okay, dann hier noch die Beschreibung aus der Hilfe:


Zitat:
Creates an instance of TResourceStream associated with a particular resource name and type.

Delphi syntax:

constructor Create(Instance: THandle; const ResName: string; ResType: PChar);

Description

Call Create to instantiate a TResourceStream, passing in parameters that identify the resource in a specified instance. TResourceStream finds the resource data and loads it into the Memory buffer for the TResourceStream.

The Instance parameter is the instance handle associated with the executable or shared library that contains the resource.

Note: Specifying resources by ID requires less memory than specifying resources by name.

The ResType parameter is a string identifying the type of the resource. Applications can define their own resource types and identify them by name in the .rc file. In addition, there are a number of predefined resource types (which reflect Windows resource types). To identify a resource that is one of the predefined resource types, set ResType to the appropriate value from the following table:
Vielleicht hilft Dir das ja weiter. Mehr kann ich leider auch nicht dazu sagen, habe leider wie schon gesagt nicht DIE Erfahrung mit Resources


EDIT: War da nicht mal was mit der Hilfe unter Windows Vista? Evtl. die Datei "winhlp32.exe" von einem XP-System kopieren und Hilfe manuell über diese öffnen. Vllt hilft Dir auch die Suche im Forum. Irgendwo wurde da mal darüber diskutiert...

EDIT2: Ja, habe es gefunden! Hier klicken...

SCRaT
Michael Kübler
  Mit Zitat antworten Zitat