Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi InitCommonControlsEx ohne VCL/Forms (https://www.delphipraxis.net/149758-initcommoncontrolsex-ohne-vcl-forms.html)

uligerhardt 29. Mär 2010 16:06


InitCommonControlsEx ohne VCL/Forms
 
Ich möchte gerne InitCommonControlsEx aufrufen, ohne Forms oder Controls zu usen. Wenn ich es so
Delphi-Quellcode:
program CommCtrlTest;

uses
  CommCtrl,
  SysUtils;

var
  icc: TInitCommonControlsEx = (
    dwSize: sizeof(TInitCommonControlsEx);
    dwICC: ICC_BAR_CLASSES;
    );
begin
  Win32Check(InitCommonControlsEx(icc));
end.
probiere, bekomme ich
Zitat:

Zitat von Benachrichtigung über Debugger-Exception
Systemfehler. Code: 126.
Das angegebene Modul wurde nicht gefunden

. Sobald ich Forms oder Controls zur uses-Klausel hinzufüge, klappt es. Ich vermute, irgendein Aufruf in einem initialization-Abschnitt regelt das - ich finde nur nicht heraus, welcher. Kann mir da jemand helfen?

Edit: Wenn man InitCommonControls vor InitCommonControlsEx aufruft, klappt's. Ich werd jetzt grad aus der MSDN-Doku nicht schlau, ob das so sein soll oder nicht.


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:04 Uhr.

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