Autor Beitrag
neo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179



BeitragVerfasst: Do 15.05.03 18:54 
Hallo!

Ich möchte mit dem IE eine Internet Adresse öffnen die immer variert.
ausblenden Quelltext
1:
WinExec('C:\Programme\Internet Explorer\IEXPLORE.exe', sh_normal);					

Jetzt möchte ich noch hinter den Pfad, die Variable in der dir Internetadresse gespeichert ist einfügen. Das geht jedoch nicht. Weiß wer Rat?

Danke!
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 15.05.03 20:36 
WinExec nimmt man nicht mehr! Mach dich bitte mit Hilfe der Suchfunktion über ShellExecute schlau. Es gibt in diesem Forum zig Beispiele, in denen auf diese Weise URLs aufgerufen werden - auch solche, die in Variablen stecken. (pchar() heißt das Zauberwort.)
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 16.05.03 15:35 
du könntest auch mal verscuhen statt
ausblenden Quelltext
1:
WinExec('C:\Programme\Internet Explorer\IEXPLORE.exe', sh_normal);					


das hier zu schreiben:WinExec('http://internetadresse.de', sh_normal); ich wiess nicht ob das per WinEXEC gehtm, aber mit ShellExec geht das sicher.
dann wird der standardbrowser mit der adresse geöffnet !

_________________
In the beginning was the word.
And the word was content-type: text/plain.