Autor Beitrag
Corni
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Sa 29.03.03 12:44 
hiho

also ich wollte mal wissen wie man eine website im standart browser oder auch nut im Internet explorer öffenen kann???
Renegade
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 358

Win XP Pro, Win 7 Beta
BDS 2006
BeitragVerfasst: Sa 29.03.03 13:19 
Mit ShellExecute sollte es funktionieren!

Gruß Renegade

_________________
Sokrates (468 v.Chr. - 399 v.Chr.)
"Es ist keine Schande, nichts zu wissen, wohl aber, nichts lernen zu wollen."
Corni Threadstarter
Hält's aus hier
Beiträge: 2



BeitragVerfasst: So 30.03.03 16:19 
jo danke dir! :)
Shadowdragon
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 143

Win 2000
Delphi 6 Pers., Delphi 7
BeitragVerfasst: So 30.03.03 17:04 
Kannst du das mal für mich genauer erklären, wie bestimme ich mit ShellExecute z.B. die Start-URL? Geht das damit überhaupt?

_________________
Ein Programm gleicht dem Prinzip von Jenga:
Viele Bestandteile, wird nach oben hin immer besser, nach unten hin immer instabiler und wenn man was falsch macht klappt der ganze Mist zusammen.
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: So 30.03.03 17:42 
ausblenden Quelltext
1:
ShellExecute(Handle, 'open', 'http://www.delphi-forum.de', nil, nil, SW_SHOW);					

Moderiert von user profile iconTino: Code-Tags hinzugefügt.
del1312
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 190



BeitragVerfasst: Fr 04.04.03 13:11 
Hm ich hab das mal bei nem Button eingebaut aber ich bekomme da die Fehlermeldung:

Zitat:

[Fehler] Unit1.pas(90): Undefinierter Bezeichner: 'ShellExecute'


Was muss ich machen damit es funzt?
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Fr 04.04.03 13:13 
du must die ShellApi in die USES klausel einbauen dann gehts ;)

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
del1312
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 190



BeitragVerfasst: Fr 04.04.03 14:24 
Danke klappt supi, nur noch eine Frage wie kann ich nen Wert aus einer DBEdit dann als Url übergeben?



ausblenden Quelltext
1:
ShellExecute(Handle, 'open','http://www.'+ 'DBEdit1', nil, nil, SW_SHOW);					
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Fr 04.04.03 14:36 
Du kannst kein Objekt vom Typ DBEdit als String übergeben.
In deinem Fall wäre also die Eigenschaft .Text nötig:
DBEdit1.Text
del1312
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 190



BeitragVerfasst: Fr 04.04.03 14:45 
Hm aber dann bekomme ich diese Fehlermeldun:
ausblenden Quelltext
1:
[Fehler] Unit1.pas(93): Inkompatible Typen: 'String' und 'PChar'					
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 04.04.03 14:53 
ausblenden Quelltext
1:
ShellExecute(Handle, 'open','http://www.'+ 'DBEdit1', nil, nil, SW_SHOW);					

Wenn das genau so da steht, dann bekommst du zwei Fehlermeldungen - mindestens.

Shellexecute erwartet einen PChar also muß ein Cast her. Zweitens dürfte das:
ausblenden Quelltext
1:
'http://www.'+ 'DBEdit1'					

Auch nicht gehen. Da DBEdit1 wohl vom Typ TObject ist, welches man natürlich nicht an einen String hängen kann. Moment ich sehe gerade, das steht ja in Hochkommas. Meinst du es gibt die Seite www.DBEdit1 ? :roll:
ausblenden Quelltext
1:
PChar('http://www.'+ DBEdit1.Text)					

Das sollte es tun.
del1312
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 190



BeitragVerfasst: Fr 04.04.03 15:05 
Vielen Dank!!!!! :D Bin noch recht neu in Delpi und wurschtel mich so durch, aber heute ab ich dank dem Forum und eurer Hilfe ne Menge gelernt. Nochmal vielen Dank an alle, macht weiter so!!!

mfg
ecspooky
DaKrissX84
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Fr 04.04.03 15:46 
Wenn wir schonmal beim Thema "Char" sind...

Was ist eigentlich genau der Typ "Char"? Habe ich das richtig verstanden, dass ein "Char" einfach nur EIN EINZIGES Zeichen ist, wobei der Typ "string" aus einer Zeichenkette besteht?

Wenn ja, was genau tut dieser Befehl:
ausblenden Quelltext
1:
PChar('http://www.'+ DBEdit1.Text)					
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Fr 04.04.03 15:59 
Ein Char ist in der Tat ein einzelnes Zeichen.
Ein PChar nicht. Das ist ein nulldetimierter String.
Funktioniert so:
P steht für Pointer. Da ist der Startwert des Strings im Speicher. Der geht bis zum Zeichen 0. Also ich meine #0 und nicht die Null. :)
horus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Sa 24.05.03 17:22 
Hallo,

foxy hat folgendes geschrieben:
du must die ShellApi in die USES klausel einbauen dann gehts ;)


wie bau ich die ShellApi denn in die USES klausel ein? Bin neu auf dem Gebiet!!!

Ich würde nämlich gerne die Website ebenfalls über ne Buttonklick aufrufen!

Greetz
horus
horus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Sa 24.05.03 17:25 
Ok hat sich erledigt.
Hab es selber hinbekommen!!!

Aber trotzdem noch ne Frage!!! Wie kann ich die Website im SELBEN Fenster aufrufen, wo auch der Button ist? :?:

Greetz
horus
BungeeBug
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 901



BeitragVerfasst: Sa 24.05.03 17:40 
Hi
das zu brauchste nen TWebBrowser1 und den musste dann "in den Hintergrund schicken" (rechtsklick drauf) ...evl. Agline (schreibt man anders ...) auf cl_client setzten (mach die Komponente so gros wie die Form und dann mir dem Button WebBrowser1.GoTo() (Ich weis nicht ob die Procedure so heisst) aufrufen :) und ab gehts :)

MfG BungeeBug
horus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Sa 24.05.03 18:26 
Ok, wo ist denn der TWebBrowser?
Habe Delphi6 und bin wie schon gesagt neu auf dem Gebiet.

Greetz
horus
Pascal
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 155

Win 98, Win XP
Delphi 2005, Delphi 5
BeitragVerfasst: So 25.05.03 11:10 
Bei Delphi5 auf der Leiste Internet, letztes Symbol.
horus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: So 25.05.03 11:14 
Hm, ja, nun ist das Problem aber, das ich Delphi 6 habe.
Bei mir gibt es bei der Leiste Internet nur "ClientSocket" und "ServerSocket".
*verzweifel* :?

Gibt es irgendwo zusätzliche Komponenten, die ich mir aus dem i-net saugen kann? :?:

Greetz
horus