Autor Beitrag
sonic159
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 76

Windows XP
BDS 2006 Professional
BeitragVerfasst: Sa 24.06.06 11:42 
Hallo...

Gibt es eine möglichkeit mit einer Konsolenanwendung eine Seite zuöffnen?
Ich brauch das für ein CS:S Server tool...

MfG: sonic159

P.S.: Beim Code:
uses ShellApi;
...
ShellExecute(Application.Handle, 'open',
PChar('www.google.de'), nil, nil, sw_ShowNormal);

tritt ein fehler auf!
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Sa 24.06.06 18:42 
Also nur eine Webadresse mit dem Browse öffnen? Klar nimm doch Shellexecute.
breakdancer1111
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 148

Windows 7 Home Premium 64Bit
Delphi XE2 Starter
BeitragVerfasst: Sa 24.06.06 19:24 
Haste du vielleicht vergessen bei den uses ShellApi hinzuschreiben?

--- Edit ---
Was für ein Fehler trit den auf?
sonic159 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 76

Windows XP
BDS 2006 Professional
BeitragVerfasst: Sa 24.06.06 19:43 
Ja ich hab ShellApi bei uses eingefügt!
Aber er sagt das "Application" nicht decleriert ist!
Hier die Fehler meldung:

[Error] spRite_Project1.dpr(33): E2003 Undeclared identifier: 'Application'
[Error] spRite_Project1.dpr(33): E2035 Not enough actual parameters


MfG: Sonic
DarkLord05
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 449

WinXP Pro SP2
Opera; Delphi 3 Pro; Delphi 2005, Turbo Delphi, dev-c++, Eclipse, MS Visual Studio .NET 2003, MS Visual C++
BeitragVerfasst: Sa 24.06.06 20:00 
Ich kann mich auch irren, aber ich glaub ne Konsolenanwendung hat so etwas wie "application" gar nicht. Entweder es heißt anders oder es gibt nichts vergleichbares (was ich mir aber nicht vorstellen kann).
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Sa 24.06.06 20:12 
nimm nil, damit gehts.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
sonic159 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 76

Windows XP
BDS 2006 Professional
BeitragVerfasst: Sa 24.06.06 20:28 
Wie NIL wo soll ich das denn einfügen?
Check ich jetzt nich -.-!
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Sa 24.06.06 20:31 
Anstatt Application.Handle musst du bei ner KOn solenanwendung nil nehmen, da das Application-Object VCL-Spezifisch ist.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
sonic159 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 76

Windows XP
BDS 2006 Professional
BeitragVerfasst: Sa 24.06.06 20:45 
KK! Hab ich jetzt versucht dann erscheint aber dieser Fehler:

[Error] spRite_Project1.dpr(31): E2010 Incompatible types: 'HWND' and 'Pointer'
[Error] spRite_Project1.dpr(31): E2010 Incompatible types: 'Integer' and 'Pointer'

MfG: Sonic
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Sa 24.06.06 21:14 
OK, hab mich vertan du musst IMHO NULL nehmen (also nich als Zahl sondern einfach NULL hinschreiben)

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
sonic159 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 76

Windows XP
BDS 2006 Professional
BeitragVerfasst: So 25.06.06 00:57 
Joo! Multi-Thanks^^!
Jetzt funktionierts!! Danke...

MfG: Sonic159