Autor Beitrag
Black Force Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56



BeitragVerfasst: Di 06.05.08 15:30 
Es gibt ein Möglichkeit die letzten Buchstaben einer Variablen wegzulassen.
Kennt die jemand. Wenn ich ExtractFilePath(ParamStr(0)); benutze, dann kommt
auch noch das Projekt1.exe dazu und das gehört ja nicht zum pfad.
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Di 06.05.08 15:35 
user profile iconBlack Force hat folgendes geschrieben:
Es gibt ein Möglichkeit die letzten Buchstaben einer Variablen wegzulassen.
Kennt die jemand. Wenn ich ExtractFilePath(ParamStr(0)); benutze, dann kommt
auch noch das Projekt1.exe dazu und das gehört ja nicht zum pfad.

Da stehts doch schon:
user profile iconFabian E. hat folgendes geschrieben:
Also deinen aktuellen Pfad findest du mit ExtractFilePath(ParamStr(0)); herraus.
Da kannst du dann noch deine Unterordner dranhängen.

gruß

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Black Force Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56



BeitragVerfasst: Mi 07.05.08 13:00 
Ich hab das Problem mit dem Pfad gelöst, aber jetzt kommt die Fehlermeldung
'Keine MCI-Geräte geöffnet'
Das hat was mit den Audiodateien zu tun aber was?
Black Force Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56



BeitragVerfasst: Mi 07.05.08 13:02 
Ich hab eine mp3 date und drei wav dateien.
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mi 07.05.08 13:47 
Hat das vorher funktioniert? Wenn ja, hast du wahrscheinlich einen Fehler mit dem Pfad gemacht.
Black Force Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56



BeitragVerfasst: Mi 07.05.08 13:52 
Wenn ich bei einer ShowMessage nachgucke ist der Pfad richtig.
Ich hab das so gemacht:
ausblenden Delphi-Quelltext
1:
Mediaplayer2.FileName := (pfad2+'knife_slash1.wav');					


pfad2 ist der pfad und ist richtig.
Black Force Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56



BeitragVerfasst: Mi 07.05.08 14:00 
ich habs jetzt.
Ich hab das
mediaplayer1.open;
vergessen. Habs erst mit autoopen versucht, hat aber nicht funktioniert.
Black Force Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56



BeitragVerfasst: Mi 07.05.08 14:13 
Könnt ihr das Programm jetzt noch mal probieren?
Einloggen, um Attachments anzusehen!
GericasS
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 540

Windows Vista Home Premium
D2010, VisualStudio2008
BeitragVerfasst: Mi 07.05.08 14:17 
user profile iconBlack Force hat folgendes geschrieben:
Könnt ihr das Programm jetzt noch mal probieren?


also bei mir funktioniert alels super jetzt =)

_________________
Alexander N.
Neue Bewaffnung Amilo xi2428 T9300
Black Force Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56



BeitragVerfasst: Mi 07.05.08 14:21 
Danke für eure Hilfe :D
Hab endlich mein Programm fertig. :)
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Mi 07.05.08 17:53 
user profile iconBlack Force hat folgendes geschrieben:
Könnt ihr das Programm jetzt noch mal probieren?

Ja... :roll:

user profile iconBlack Force hat folgendes geschrieben:
Hab endlich mein Programm fertig.

War das die finale Version? Ich mein, arg viel Denken musste man bei dem Spiel auch nicht. Aber es ist sicher noch ein wenig ausbaufähig.

Wenn du mal professioneller programmieren willst, könntest du dir OpenGL mal anschauen. DelphiGL ist eine Community mit Forum, Wiki und vielen Tutorials. Damit ist der Einstig recht leicht gemacht :D

Grüße,
Yogu
Black Force Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56



BeitragVerfasst: Mi 07.05.08 19:08 
Nein, nätürlich bin ich damit nicht beim Ende. Schließlich ist das kein Spiel
Ich will dem Gegner schon die Fähigkeit geben sich zu verteidigen :)
Oder noch mehr Gegner, ein ganzes Level u.s.w. ein Spiel halt.
Das war jetzt erst ein erster Versuch.
Black Force Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56



BeitragVerfasst: Mi 07.05.08 19:10 
Ich will jetzt keine dumme Frage stellen, aber was ist der Unterschied
zwischen DirectX und OpenGL?
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Mi 07.05.08 19:26 
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 07.05.08 19:54 
Liest hier auch mal wer Beiträge.
Eigeninitiative = 0 , Kopfschüttel

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)