Autor Beitrag
Christoph Englmann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Do 14.04.05 09:05 
hallo,

möchte mit folgendem Befehl ne Datei öffnen
ausblenden Delphi-Quelltext
1:
  shellexecute(handle, 'open', Pchar(Datei), nil, nil, SW_MAXIMIZE);					


leider kommt beim compilieren die Fehlermeldung:
"undeclared identifier handle"

an der einbindung von shellapi und windows in der uses klausel kanns net liegen -> sind eingebunden...

vielleicht liegts daran:
der aufruf erfolgt aus einer unit ohne dazugehöriger Form (existiert also keine Form dazu)...

danke für jede hilfe

christoph
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Do 14.04.05 09:20 
Ist die Variable handle auch definiert?
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Do 14.04.05 09:42 
Hallo,

nimm mal
ausblenden Delphi-Quelltext
1:
Application.handle					

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Do 14.04.05 09:56 
super,

mit
application.handle
hats funktioniert

danke