Autor Beitrag
>spEEd>
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62


Delphi 2005 Pers.
BeitragVerfasst: 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
ausblenden 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 user profile iconraziel: Topic aus Windows API verschoben am So 18.09.2005 um 11:28
starsurfer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
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++
BeitragVerfasst: So 18.09.05 11:19 
ausblenden Delphi-Quelltext
1:
Application.MessageBox('Das is ne Messagebox!','aloa he',MB_OKCANCEL + MB_OK);					


so geht´s, de delphi hilfe hilft weiter wenn´s um de buttons geht :wink:

_________________
GEIZ IST GEIL! - Ihr Sozialamt
>spEEd> Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62


Delphi 2005 Pers.
BeitragVerfasst: 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?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
uses
  System.Drawing, System.Collections, System.ComponentModel,
  System.Windows.Forms, System.Data, SysUtils, system.IO,
  System.Resources;
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: 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:
ausblenden Delphi-Quelltext
1:
  MessageBox.Show('Text''Caption', System.Windows.Forms.MessageBoxButtons.OK);					

_________________
JSXGraph
starsurfer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
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++
BeitragVerfasst: So 18.09.05 11:34 
:?!?:


hat sich ja geklärt :roll:

_________________
GEIZ IST GEIL! - Ihr Sozialamt
>spEEd> Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62


Delphi 2005 Pers.
BeitragVerfasst: 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 :roll:

>spEEd>