Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Resource-DLLs (https://www.delphipraxis.net/121966-resource-dlls.html)

turboPASCAL 8. Okt 2008 16:59

Re: Resource-DLLs
 
( Ich habe oben mal ein Update gemacht. )

Was mich allerdings stört ist:

Delphi-Quellcode:
{Auszug:}

    // Das selbe Spiel für Icons, da es (bei Delphi6 ?) keine
    // Procedure "LoadFromResourceName" mit Angabe des
    // Resourcenhandles in einer TImage-Kompon. gibt
    // Warum auch immer, das klappt nicht: (!) Echt komisch (!)
    // Der Compiler findet angeblich die Iconresource nicht.

    rs := TResourceStream.Create(hResLib, 'ANY_ICON', RT_ICON);
    try
      Image3.Picture.Icon.LoadFromStream(rs);
    finally
      rs.Free;
    end;

    // Na, dann machen wir's so:
    Image3.Picture.Icon.Handle := LoadIcon(hResLib, 'ANY_ICON');


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:22 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz