![]() |
Problem mit Form in DLL
Hallo zusammen,
Ich habe folgendes Problem: Ich habe ein Form in eine DLL ausgelagert, das funktioniert auch wunderbar bis auf auf so Eigenschaften wie ClientWidth, Left etc. Wenn ich diese innerhalb der Form benutzen möchte z.B so
Delphi-Quellcode:
bekomme ich eine Zugriffsverletzung.
Label.Width:=Form.ClientWidth-100;
Weiß jemand wo hier das Problem liegt? Danke schon mal im Voraus für die Hilfe! Hier noch der Sourcecode der DLL-Prozedur zum Aufrufen der Form:
Delphi-Quellcode:
library list;
uses Forms, form in 'form.pas' {LIST_WINDOW}; {$E dll} {$R *.res} procedure SHOW_LIST; stdcall; var FORM: TLIST_WINDOW; begin FORM:=TLIST_WINDOW.Create(Application); FORM.ShowModal; FORM.Free; end; exports SHOW_LIST; begin end. |
Re: Problem mit Form in DLL
Versuchs mal mit
Code:
Ist aber ohne Gewähr...
Label.Width:= self.ClientWidth-100;
|
Re: Problem mit Form in DLL
hast du dir das
![]() |
Re: Problem mit Form in DLL
Danke das mit 'self' funktioniert!
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:26 Uhr. |
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