Autor Beitrag
Mitmischer 1703
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Mo 01.10.07 17:56 
Was brauche ich für Shellexecute??? Mein Delphi checkt das nicht! Brauche: Variablen, USES, usw.
Dankeschön! (Delphi 3)
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mo 01.10.07 18:00 
mit der Suchfunktion würdest du herausfinden das du ShellAPI einbinden must bei den USES. Dann sagt dir delphi in der Codeverfolständigung was du brauchst. weißt dus noch immer nicht ist dir die Suchfunktion noch nicht weggelaufen. ;-)

lg elundril
Mitmischer 1703 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Mo 01.10.07 18:02 
Danke!
Mitmischer 1703 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Mo 01.10.07 18:06 
Titel: Was bedeuten die VARs
Was bedeuten die VARs?

hWnd: ???
Operation: ???
Filenames : Programmname (?)
Parameters: ???
Directory : Programmpfad (?)
ShowCmd : Eingabeaufforderung zeigen (?)

Bedankt!
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Mo 01.10.07 18:07 
Markieren + F1 in Delphi. ;-)
Mitmischer 1703 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Mo 01.10.07 18:09 
Ich habe Vista :cry: ! Das hat mir das Delphi-Hilfesystem zerschossen! Hilfe :cry: !!!
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10184
Erhaltene Danke: 1259

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 01.10.07 18:10 
Moin und :welcome: im Forum!

user profile iconMitmischer 1703 hat folgendes geschrieben:
Ich habe Vista :cry: ! Das hat mir das Delphi-Hilfesystem zerschossen! Hilfe :cry: !!!

Kein Problem, schau halt ins MSDN :arrow: Suche im MSDN SHELLEXECUTE! :les: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mo 01.10.07 18:12 
also:


  1. hWnd: das is ein handle. Ich glaub da musst/kannst du das deine Anwendung eintragen. mittels Application.Handle. Oder mit Form1.Handle.

  2. Operation: Das was du machen willst. Da du, nehm ich an, ein programm aufrufen willst, nimmst du PChar('open'). Pchar deshalb davor weil du nen PAnsiChar als Parameter übergeben musst und keinen string. seshalb das vor die klammern setzen.

  3. Parameters: einfach eine 0 eingeben.

  4. Directory: ist der Pfad zum Programm das du öffnen willst.

  5. ShowCmd: da du das programm anzeigen willst is das ShowCmd das du brauchst SW_SHOW.


lg elundril
Wolle92
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Mo 01.10.07 18:14 
Außerdem hat Vista das Delphi-Hilfesystem nicht zerschossen, das ist bei allen Programmen so, die nicht für Vista entwickelt wurden und das Windows-eigene Hilfesystem benutzen... Seit Vista gibts da nen neues...
Aber das alte kannst du dir bei Microsoft runterladen...
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 01.10.07 18:17 
Das mit der Vista-Hilfe ist zwar nicht Thema dieses Topics, aber ich denke, dieser kleine Hinweis geht hier mal in Ordnung: klick :D

_________________
We are, we were and will not be.
Mitmischer 1703 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Mo 01.10.07 18:22 
Das klappt nicht! :( Wenn ich folgendes mache, öffnet sich "nur" der Explorer, nicht die Datei!

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
  Shellexecute (Form1.Handle, PChar ('open'), 'C:\3dGame''0''ActTest.exe', SW_Show);
end;


Hilfe!

Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt
Regan
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Mo 01.10.07 18:30 
Dann schau doch mal in die Library.
Mitmischer 1703 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 754
Erhaltene Danke: 19

Win 7, Debian
Delphi Prism, Delphi 7, RAD Studio 2009 Academic, C#, C++, Java, HTML, PHP
BeitragVerfasst: Mo 01.10.07 18:42 
Titel: Danke!
Hat sich geregelt: :oops:

ausblenden Delphi-Quelltext
1:
ShellExecute(Handle,nil,PChar('C:\Keine Ahnung!'),nil,nil,SW_SHOW);					


Danke an alle! :)

Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt