Autor Beitrag
sutaro
Hält's aus hier
Beiträge: 7



BeitragVerfasst: So 20.03.05 18:26 
hi
ich habe vor kurzem mit dem delphi-programmieren angefangen, und habe nun folgendes problem:
hier bei den faq bin ich darauf gestossen, dass man eine internetseite im browser über
ausblenden Delphi-Quelltext
1:
shellexecute(handle,'open','http://www.delphi-forum.de',nil,nil,sw_show);					

aufrufen kann.
ich möchte jetzt aber eine php-datei aufrufen, und der müssen parameter übergeben werden die ich in meinem delphi-programm in einem string gespeichert habe. wenn ich das jetzt mache dann meint delphi, dass die url vom typ "PAnsiChar" sein muss. kann mir jemand sagen, wie ich jetzt meinen string in so einen "PAnsiChar" umwandeln kann?!
danke schonmal :)


Moderiert von user profile iconMotzi: Topic aus Internet / Netzwerk verschoben am So 20.03.2005 um 17:57
Moderiert von user profile iconAXMD: Code- durch Delphi-Tags ersetzt.
Sprint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 849



BeitragVerfasst: So 20.03.05 18:31 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
var
  S: String;
begin

  ShellExecute(0'open', PChar(S), ...);

_________________
Ciao, Sprint.
Lesco
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 42



BeitragVerfasst: Do 24.03.05 18:34 
willst du POST oder GET Parameter übergeben?
bei POST wirds etwas schwieriger
bei GET gehts so:
www.hp.de/datei.php?...oo&param2=abcdef
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 24.03.05 23:31 
POST ist nicht etwas schwieriger. Es ist schlicht nicht möglich.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Fr 25.03.05 00:33 
user profile iconmatze hat folgendes geschrieben:
POST ist nicht etwas schwieriger. Es ist schlicht nicht möglich.

Das stimmt so nicht ganz. In den meisten Linuxdistribution ist das Programm wget mit dabei, damit kannst du "getten" aber auch "posten". So n Programm gibt's bestimmt auch für Windows. Ich geb dir aber recht: Direkt geht es ohne Zusatzprogramme nicht.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 25.03.05 11:15 
OK. mit WGET gehts. das gibt es auch für Windows.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
noctua
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 170



BeitragVerfasst: Di 21.06.05 15:37 
user profile iconSprint hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
var
  S: String;
begin

  ShellExecute(0'open', PChar(S), ...);


der sagt mir undefinierte bezcihnung "ShellExecute", walso habe ich einfach meinen text dort hineingeschrieben also

ausblenden Quelltext
1:
blabla := PChar(S)					


geht auch nich

_________________
Am ende sterben eh alle ................


Zuletzt bearbeitet von noctua am Di 21.06.05 15:40, insgesamt 1-mal bearbeitet
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Di 21.06.05 15:40 
Du musst wahrscheinlich oben bei uses noch ShellAPI dazuschreiben... ;)