Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Wie öffne ich den standard Internet-Browser? PROBLEM (https://www.delphipraxis.net/92340-wie-oeffne-ich-den-standard-internet-browser-problem.html)

RealSurfer 18. Mai 2007 09:22


Wie öffne ich den standard Internet-Browser? PROBLEM
 
Ich benutze diesesen Aufruf:
Delphi-Quellcode:
ShellExecute(0, 'open', 'www.egal.com/ordner/seite.php?'+inttostr(X)+','+inttostr(Y), nil, nil, SW_SHOW);
(ShellAPI ist in Uses Liste)
Dashier funktioniert jedoch...
Delphi-Quellcode:
Webbrowser.Navigate('www.egal.com/ordner/seite.php?'+inttostr(X)+','+inttostr(Y));
Was muss ich tun?
(Es ist richtig das die Seite so "www.egal.com/ordner/seite.php?200,400" aussehen soll ;-) )

Achja die Fehlermedlung:
[Fehler] Proggy.pas(XX): Inkompatible Typen: 'String' und 'PAnsiChar'

jfheins 18. Mai 2007 09:24

Re: Wie öffne ich den standard Internet-Browser? PROBLEM
 
Dumusst nach PChar casten:
Delphi-Quellcode:
ShellExecute(0, 'open', PChar('www.egal.com/ordner/seite.php?'+inttostr(X)+','+inttostr(Y)), nil, nil, SW_SHOW);
;)

mkinzler 18. Mai 2007 09:25

Re: Wie öffne ich den standard Internet-Browser? PROBLEM
 
Delphi-Quellcode:
ShellExecute(0, 'open', PAnsiChar('www.egal.com/ordner/seite.php?'+inttostr(X)+','+inttostr(Y)), nil, nil, SW_SHOW);

RealSurfer 18. Mai 2007 09:28

Re: Wie öffne ich den standard Internet-Browser? PROBLEM
 
DANKESCHÖN :-) (is doch ein noobfehler oder? (Bin auch einer) PAnsiChar is mir noch nie untergekommen :oops:


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:21 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz