![]() |
Problem mit Application.CreateForm
Delphi-Quellcode:
program Autocaster;
uses Forms, Haupt in 'Haupt.pas' {Form1}; {$R *.res} begin Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run; end. Bei Application.CreateForm(TForm1, Form1); kommt die Fehlermeldung: [Fehler] Autocaster.dpr(11): Undefinierter Bezeichner: 'Form1' Delphi hat das doch automatisch erstellt, warum kommt da eine Fehlermeldung? :wiejetzt: |
Re: Problem mit Application.CreateForm
Existiert in Haupt.pas wirklich eine Variable mit dem Namen Form1?
|
Re: Problem mit Application.CreateForm
Wenn das damit gemeint ist, dann ja:
Delphi-Quellcode:
type
TForm1 = class(TForm) |
Re: Problem mit Application.CreateForm
Nein das ist die Klassendefinition
Delphi-Quellcode:
Var
Form1: TForm1; |
Re: Problem mit Application.CreateForm
Das wars Problem, hab ich wohl aus Versehen rausgelöscht :gruebel:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:31 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