Autor Beitrag
V!P3R
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 151



BeitragVerfasst: Mi 17.10.07 18:05 
Hi,
Ich hab folgendes Problem:

Ich will in mein Programm Buttons erstellen, die dann ins inet gehn und denn link abrufen, den man abgibt

das hab ich so gemacht, wie immer, doch es klappt nicht

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
procedure TForm1.Button5Click(Sender: TObject);
begin
ShellExecute(0'open', PChar('firefox.exe'), PChar('Edit1.text'), nil, SW_SHOW);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
ShellExecute(0'open', PChar('firefox.exe'), PChar('www.google.de'), nil, SW_SHOW);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
ShellExecute(0'open', PChar('firefox.exe'), PChar('www.google.de'), nil, SW_SHOW);
end;

procedure TForm1.Button3Click(Sender: TObject);
begin
ShellExecute(0'open', PChar('firefox.exe'), PChar('www.google.de'), nil, SW_SHOW);
end;

end.



Wenn ich das mahce, und F9 drücke kommt folgendes:

ausblenden Delphi-Quelltext
1:
[Fehler] main.pas(121): Undefinierter Bezeichner: 'ShellExecute'					


warum ging das immer und jetzt nicht?

PS: wie ihr seht, ist der link immer: google, das soll sich noch ändern


MfG
Xion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Mi 17.10.07 18:13 
ShellAPI einbinden :D

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 17.10.07 18:13 
Uses ..., ShellApi;

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
V!P3R Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 151



BeitragVerfasst: Mi 17.10.07 18:16 
Titel: lol
lol


stimmt

vielen dank, wer ich mir unbedingt merken


MfG