Autor Beitrag
kongreddgrass
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 238

Win 98, Win 2000, Win Xp Prof.,Linux 8.2 Prof
Delphi 6
BeitragVerfasst: Do 07.08.03 10:23 
Hi ich hab folgendes Problem,

ich kann mit dem Button und dem Code
ausblenden Delphi-Quelltext
1:
Winexec(PChar('C:\blabla\blabla.exe'), SW_SHOW);					

nur Programme starten, Spiele kann ich allerdings nicht starten. Gibt es da eine Möglichkeit, Spiele trotzdem zu starten ? :oops: Wär total happy auf die Antwort. 8)

Ich mach da son Progg mit Menü, wo man über das Menü Programme starten kann, damit der Desktop auch sauber bleibt. (Hab ne geile Frau drauf).

Mike :mahn:

Moderiert von user profile iconTino: Titel geändert & Topic verschoben.

_________________
o.o
Logiqu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43

Win XP
Delphi 2006 Pro
BeitragVerfasst: Do 07.08.03 10:39 
also ich kann damit jede normale exe öffnen... vielleicht ist der datenpfad falsch?

_________________
Logiqu. Just feel it...
kongreddgrass Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 238

Win 98, Win 2000, Win Xp Prof.,Linux 8.2 Prof
Delphi 6
BeitragVerfasst: Do 07.08.03 11:40 
Hi
ich meinte ich kann zwar Programme öffnen
ABER
KEINE SPIELE
Irgendwas funzt bei dem Code nicht
ausblenden Delphi-Quelltext
1:
WinExec(PChar('C:\BlaBla\Blabla.exe'), SW_SHOW					

Vielleicht liegt es ja auch am SW_SHOW. Dass da für Spiele was anders als SW_SHOW gibts. :cry:
:mahn: und dann :autsch:
Mike

_________________
o.o
Terra23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 872

Win 8
Delphi 7
BeitragVerfasst: Do 07.08.03 11:51 
Warum nimmst du nicht ShellExexute? Du solltest hier oft fündig werden:

Suche in: Delphi-Forum, Delphi-Library SHELL EXECUTE

_________________
Hasta La Victoria Siempre
kongreddgrass Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 238

Win 98, Win 2000, Win Xp Prof.,Linux 8.2 Prof
Delphi 6
BeitragVerfasst: Do 07.08.03 14:11 
Hi,
das Problem ist jetzt gelöst
Hab bei SW_SHOW noch NORMAL dazu getan
ausblenden Delphi-Quelltext
1:
WinExec(PChar('C:\Blabla\blabla.exe'), SW_SHOWNORMAL);					

jetzt funzt es. :D
Mike, und nochmals Dank an TTerra32 obwohl bei der Suche was anderes dabei war. Grez 8)
Mike :rofl: :dance: :beer: :dance:

_________________
o.o
lemming
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Do 07.08.03 16:32 
SW_SHOW und SW_SHOWNORMAL sind einfach Integer werte. Du hättest auch 0 1 3 oder 4 nehmen können.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 07.08.03 16:37 
lemming hat folgendes geschrieben:
SW_SHOW und SW_SHOWNORMAL sind einfach Integer werte. Du hättest auch 0 1 3 oder 4 nehmen können.

*TILT*
Und nach drei Wochen weißt du noch welcher Wert für welche Konstante steht? Oder stellst du dich auch mit deiner Personalausweisnummer vor? Microsoft hat sich extra die Mühe gemacht aussagekräftige Konstanten einzuführen und was machst du? :roll:

@kongreddgrass: Nimm lieber Shellexecute. WinExec wird von Microsoft nur noch aus Kompatibilitätsgründen zu 16-Bit Programme unterstützt und wurde schon lange als obsolete deklariert.
kongreddgrass Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 238

Win 98, Win 2000, Win Xp Prof.,Linux 8.2 Prof
Delphi 6
BeitragVerfasst: Fr 08.08.03 11:18 
Hi,
an alle die sowas suchen:
In FAQ: Dateizugriff steht auch ShellExecute
www.delphi-forum.de/viewtopic.php?t=2887

_________________
o.o