Autor Beitrag
meg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 24

Win XP Prof.
D6, D2005 Peronal, Turbo Delphi
BeitragVerfasst: Mi 15.02.06 20:12 
Hallo!

ich habe versucht den IE über WinExec mit einem auswählbaren Link zu öffnen,
sprich:

ausblenden Delphi-Quelltext
1:
WinExec('C:\Programme\Internet Explorer\IEXPLORE.EXE' + ' ' + RadioGroup1.Items.Strings[RadioGroup1.ItemIndex], sw_show);					


nur scheint die Erweiterung der exe nur über Konstante zu funtionieren

Gibt es irgendeinen Befehl um Stings in Konstante zu konvertieren?

könnt ihr mir vielleicht helfen

Gruß
meg

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Mi 15.02.06 20:29 
einfach um das ganze ein PChar drum machen,
desweiteren sollte man ShellExecute benutzen,
da kann man statt dem programm dann auch direkt den link angeben und
dieser wird dann im Standard Browser geöffnet

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
meg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 24

Win XP Prof.
D6, D2005 Peronal, Turbo Delphi
BeitragVerfasst: Mi 15.02.06 20:47 
was soll ich dann als Ipoperation nehmen
explore?
meg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 24

Win XP Prof.
D6, D2005 Peronal, Turbo Delphi
BeitragVerfasst: Mi 15.02.06 20:54 
ok aber wie bekomme ich den string zu einem PChar

ich hab das mal so probiert:
var test :PChar;
test := RadioGroup1.Items.Strings[RadioGroup1.ItemIndex];

geht aber nicht
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Mi 15.02.06 20:54 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
uses ShellAPI;

procedure TForm1.FormCreate(Sender: TObject);
var s: string;
begin
  s := 'blabla';
  ShellExecute(0,'open',PChar('www.google.de'+s),nil,nil,SW_SHOWNORMAL);
end;


Die Suche hier hilft aber auch.

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
meg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 24

Win XP Prof.
D6, D2005 Peronal, Turbo Delphi
BeitragVerfasst: Mi 15.02.06 20:56 
ich hab ja gesucht, aber nach dem falschen das war main Problem

Danke für das schnelle feedback