Autor Beitrag
Delphi~Anfänger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Fr 04.06.04 19:52 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
uses {...,}shellapi;

{...}
procedure TForm1.Label9Click(Sender: TObject);
begin
if shellexecute(handle,'open','http://www.delphi-forum.de',nil,nil,sw_show)<=32
then showmessage('Internetseite konnte nicht geöffnet werden!');
end;

end.


Fehler:
Zitat:
Deklaration erwartet, aber "USES" gefunden
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Fr 04.06.04 19:56 
uses im interface abschnitt?

_________________
JSXGraph
Delphi~Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Fr 04.06.04 19:58 
ich meine das uses: uses {...} shellapi;

was heißt INERFACE ?
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Fr 04.06.04 20:05 
du hast mehrere bereiche in einer delphi-anwendung.
gewöhnlich sind es zwei:
interface und implementation
außerdem dürfte im interface teil bereits ein uses stehen. entfern da am ende einfach das semikolon und schreib das hier hin:
ausblenden Delphi-Quelltext
1:
, ShellAPI;					


raziel

_________________
JSXGraph
Delphi~Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Fr 04.06.04 20:11 
funzt aber nicht immer noch gleicher fehler!!
Delphi~Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 97



BeitragVerfasst: Fr 04.06.04 20:19 
geht jetzt

einfach so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.Label9Click(Sender: TObject);
begin
if shellexecute(handle,'open','http://www.delphi-forum.de',nil,nil,sw_show)<=32
then showmessage('Internetseite konnte nicht geöffnet werden!');
end;

end.


Ohne:uses
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Fr 04.06.04 20:24 
dann post bitte etwas mehr code.
hast du auch nur ein uses im interface oder zwei?
//edit: auf die idee muss man erstmal kommen eine unit zweimal einzubinden... :roll:

_________________
JSXGraph