Autor Beitrag
SMARTY1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Fr 28.12.07 12:29 
Ich möchte einen Begriff, den ich in ein Editfenster eingebe, in Google suchen!

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
Shellexecute(0,nil,'http://www.google.de/search?hl=de&q='+Edit1.Text+'&btnG=Google-Suche&meta=',nil,nil, SW_SHOWNORMAL);
end;


Der code funktionniert aber nicht! da kommt immer ein Fehler! Was mach ich falsch?
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Fr 28.12.07 12:43 
Wenn Du noch sagst, was für ein Fehler, würde uns das sehr helfen :roll:
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Fr 28.12.07 12:48 
Moment, ich glaube meine Glaskugel funktioniert wieder: Füg mal ganz oben bei uses ShellApi hinzu.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
SMARTY1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Fr 28.12.07 13:57 
nein, shellapi hab ich schon! Der Fehler der kommt ist: E2010 Inkompatible Typen: 'string' und 'PAnsiChar'

ich habe keine Ahnung! bitte helft mir
Tilman
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1405
Erhaltene Danke: 51

Win 7, Android
Turbo Delphi, Eclipse
BeitragVerfasst: Fr 28.12.07 13:59 
versuch mal PChar(edit1.text)

_________________
Bringe einen Menschen zum grübeln, dann kannst du heimlich seinen Reis essen.
(Koreanisches Sprichwort)
SMARTY1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Fr 28.12.07 16:22 
Ne funktionniert auch nicht!
Ich checks nicht! :(
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 28.12.07 16:24 
Ich denke, Tilman meinte so:
ausblenden Delphi-Quelltext
1:
Shellexecute(0,nil,PChar('http://www.google.de/search?hl=de&q='+Edit1.Text+'&btnG=Google-Suche&meta='),nil,nil, SW_SHOWNORMAL);					

_________________
We are, we were and will not be.
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Fr 28.12.07 16:24 
Nimm mal das:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
  ShellExecute(0nil, PChar('http://www.google.de/search?hl=de&q=' + Edit1.Text + '&btnG=Google-Suche&meta='), nilnil, SW_SHOWNORMAL);
end;
SMARTY1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Fr 28.12.07 16:35 
Hey danke danke danke!
Funktionniert einwandfrei!
Gruß