Autor Beitrag
fabi65
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64



BeitragVerfasst: Fr 01.04.05 12:25 
gude,

ich möchte gerne bei einer Konsolenanwendung ein prog starten, jedoch gibt er mit nen fehler aus, was mach ich falsch?


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
uses
  SysUtils,
  StdCtrls,
  ShellAPI,
  Unit12 in 'Unit12.pas' {Form12};

begin
shellExecute(Application.Handle,'open',PCHar('http://www.gmb-theband.de'),nil,nil,sw_ShowNormal);
end.
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: Fr 01.04.05 13:02 
user profile iconfabi65 hat folgendes geschrieben:
ich möchte gerne bei einer Konsolenanwendung ein prog starten, jedoch gibt er mit nen fehler aus, was mach ich falsch?

Wär vllt. ganz praktisch, wenn du uns sagst, welchen Fehler er da bringt. ;)
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: Fr 01.04.05 13:10 
Okay... Bei dir fehlt eine Unit, die du für Application.Handle brauchst. ;)

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
uses
  SysUtils,
  StdCtrls,
  ShellAPI,
  Forms,
  Unit12 in 'Unit12.pas' {Form12};

begin
shellExecute(Application.Handle,'open',PCHar('http://www.gmb-theband.de'),nil,nil,0);
end.
Sprint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 849



BeitragVerfasst: Fr 01.04.05 13:19 
Ersetze Application.Handle durch 0 oder besser GetDesktopWindow.

_________________
Ciao, Sprint.
fabi65 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64



BeitragVerfasst: Sa 02.04.05 17:15 
ok danke gehts!