Autor Beitrag
kiwicht
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1021

Win 7, MacOS
Delphi x, VBA, PHP, ...
BeitragVerfasst: Di 08.04.03 12:38 
ich nochmal, hello again! :D

hab folgende Zeile aus einer älteren Unit in mein Prog übernommen:

ausblenden Quelltext
1:
ShellExecute(handle, 'open', iadresse , nil, nil,SW_SHOW)					


Fehler: ShellExecute(handle) -> Delphi kennt handle nicht.
Ich also aus der Original Unit sämtliche Units aus dem Uses-Bereich kopiert: Nix. Gleiche Fehler.

Geschaut ob ich irgendwo im Programm-Code der Oiginal-Unit was finde zu handle. Nix. Keine Deklarationen oder sonstige Einbindungen...

Weiß einer was ich falsch mache?

mfg und Danke im Voraus


Zuletzt bearbeitet von kiwicht am Di 08.04.03 14:10, insgesamt 1-mal bearbeitet
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Di 08.04.03 13:13 
Die Unit ShellApi hast du eingebunden?

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
kiwicht Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1021

Win 7, MacOS
Delphi x, VBA, PHP, ...
BeitragVerfasst: Di 08.04.03 13:26 
jap, gleich als erstes, wird ja auch für ShellExecute gebraucht, und das funktioniert ja seltsamerweise....
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Di 08.04.03 13:34 
ShellExecute(Application.Handle,'open',bla,nil,bla,SW_SHOWNORMAL);

versuch das ma :wink2:

_________________
"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)
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 08.04.03 13:45 
In deinem alten Programm war wohl die Porzedur / Funktion in der Shellexecute aufgerufen wurde eine Methode von deiner Form, somit ist Handle bekannt. Jetzt schient das nicht mehr der Fall zu sein. Somit muß die Zeile:
ausblenden Quelltext
1:
Shellexecute(Form1.Handle, ...);					

heißen.
kiwicht Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1021

Win 7, MacOS
Delphi x, VBA, PHP, ...
BeitragVerfasst: Di 08.04.03 14:09 
jibbie!

Klappt beides! Wieder was dazugelernt!

Danke Luckie, Danke Foxy


mfg