Autor |
Beitrag |
>spEEd>
Beiträge: 62
Delphi 2005 Pers.
|
Verfasst: So 18.09.05 11:11
Hi @ all,
bin schon seit ein paar Stunden im Internet und versuche vergeblich in "Delphi 2005 Architect" eine Message-Box erscheinen zu lassen. Habe bereits alle Möglichkeiten ausprobiert, die ich im Internet gefunden habe, hat aber alles nicht geklappt.
Bei
Delphi-Quelltext 1:
| Application.Message('Text', 'Titel', 0); |
bekomme ich als Fehlermeldung: "[Fehler] FormHauptfenster.pas(709): E2003 Undefinierter Bezeichner: 'Message'"
Und bei den anderen Versionen, ohne "Application"
Beispiel: MessageBox('Text', 'Titel', 0);
bekomme ich als Fehlermeldung für das erste Komma: "[Fehler] FormHauptfenster.pas(709): E2029 ')' erwartet, aber ',' gefunden"
Hoffe, dass jemand weiß wie das funktioniert.
Vielen Dank schon mal im Vorraus!
>spEEd> Moderiert von raziel: Topic aus Windows API verschoben am So 18.09.2005 um 11:28
|
|
starsurfer
Beiträge: 334
Win 95, Win 98, Win XP, Win Vista, Linux
D5 Enterprise ,D2005, D6 Personal, Visual C++ Express 2005, C++ Builder 6 E, Dev-C++
|
Verfasst: So 18.09.05 11:19
_________________ GEIZ IST GEIL! - Ihr Sozialamt
|
|
>spEEd>
Beiträge: 62
Delphi 2005 Pers.
|
Verfasst: So 18.09.05 11:24
Das hab ich auch schon probiert, da gibt's 3 Fehlermeldungen:
[Fehler] FormHauptfenster.pas(709): E2003 Undefinierter Bezeichner: 'MessageBox'
[Fehler] FormHauptfenster.pas(709): E2003 Undefinierter Bezeichner: 'MB_OKCANCEL'
[Fehler] FormHauptfenster.pas(709): E2003 Undefinierter Bezeichner: 'MB_DEFBUTTON1'
Kann es sein, dass ich noch etwas bei uses hinzufügen muss?
Delphi-Quelltext 1: 2: 3: 4:
| uses System.Drawing, System.Collections, System.ComponentModel, System.Windows.Forms, System.Data, SysUtils, system.IO, System.Resources; |
|
|
raziel
Beiträge: 2453
Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
|
Verfasst: So 18.09.05 11:33
Nein, nicht zur uses, du bist nur im falschen Forum gelandet, denn du entwickelst nicht unter Win32 sondern .NET
In .NET geht das so:
Delphi-Quelltext 1:
| MessageBox.Show('Text', 'Caption', System.Windows.Forms.MessageBoxButtons.OK); |
_________________ JSXGraph
|
|
starsurfer
Beiträge: 334
Win 95, Win 98, Win XP, Win Vista, Linux
D5 Enterprise ,D2005, D6 Personal, Visual C++ Express 2005, C++ Builder 6 E, Dev-C++
|
Verfasst: So 18.09.05 11:34
hat sich ja geklärt
_________________ GEIZ IST GEIL! - Ihr Sozialamt
|
|
>spEEd>
Beiträge: 62
Delphi 2005 Pers.
|
Verfasst: So 18.09.05 11:39
Zitat: | Nein, nicht zur uses, du bist nur im falschen Forum gelandet, denn du entwickelst nicht unter Win32 sondern .NET |
Vielen Dank für deine Hilfe, raziel! So gut kenn ich mich mit Delphi halt noch nicht aus
>spEEd>
|
|
|