Autor Beitrag
O5IRI5
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 36
Erhaltene Danke: 2

XP/Vista
C# (VS 2005) , eclipse
BeitragVerfasst: Di 13.11.07 14:58 
Hallo!
ich verwende die Microsoft.DirectX.AudioVideoPlayback Library und möchte den Dateinamen "string" mit dem der Konstruktor des Audio -oder Videoobjekts gefüllt wurde, im Nachhinein herausfinden.

Erzeugt wurde z.b. Video(@"C:\blabla.avi")

Ich möchte den String "C:\blabla.avi" extrahieren.

Kann mir jemand weiterhelfen?

LG
Harry
Kha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3803
Erhaltene Danke: 176

Arch Linux
Python, C, C++ (vim)
BeitragVerfasst: Di 13.11.07 16:01 
Ich entnehme deinem Text, dass du das Objekt selbst erzeugt hast, warum speicherst du also nicht einfach den Dateinamen selbst, wenn du ihn schon einmal in einer Variablen hattest? Per Reflection wirst du jedenfalls höchstwahrscheinlich nicht drankommen, mDX ist ja nur ein Wrapper.
O5IRI5 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 36
Erhaltene Danke: 2

XP/Vista
C# (VS 2005) , eclipse
BeitragVerfasst: Di 13.11.07 16:21 
Du hast schon recht, die Möglichkeit war mir schon klar.

Hatte nur irgenwo aufgeschnappt, das die genannte Video Klasse eine Membervariable namens "savedFilename" beinhaltet, wenn ich mich nicht irre.
O5IRI5 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 36
Erhaltene Danke: 2

XP/Vista
C# (VS 2005) , eclipse
BeitragVerfasst: Di 13.11.07 16:28 
Hat sich schon erledigt.


- Nicht öffentliche Member
Disposing null System.EventHandler
Ending null System.EventHandler
+ hVideoDrain 0x00000000 HWND__*
+ hwndOwner 0x00010414 HWND__*
m_bDisposed false bool
+ messageWindow 0x0004045e HWND__*
ourDevice Der Ausdruck konnte nicht ausgewertet werden. Microsoft.DirectX.Direct3D.Device
+ ourParentObject {System.Windows.Forms.PictureBox, SizeMode: Normal} System.Windows.Forms.Control {System.Windows.Forms.PictureBox}
+ pAllocator 0x00000000 IVMRSurfaceAllocator9*
Pausing null System.EventHandler
+ pBasicVideo 0x003ca4c0 IBasicVideo*
+ pFilter 0x00000000 IBaseFilter*
+ pGraph 0x003c9ef0 IGraphBuilder*
pManagedTexture Der Ausdruck konnte nicht ausgewertet werden. Microsoft.DirectX.Direct3D.Texture
+ pMediaControl 0x003ca2f4 IMediaControl*
+ pMediaEvent 0x003ca310 IMediaEventEx*
+ pMediaPosition 0x003ca408 IMediaPosition*
+ pMediaSeeking 0x003ca398 IMediaSeeking*
+ pVideoFrameStep 0x00000000 IVideoFrameStep*
+ pVideoWindow 0x003ca420 IVideoWindow*
savedFileName "H:\\FILME\\A.Night.At.The.Roxbury.(1998).avi" string
Starting null System.EventHandler
Stopping null System.EventHandler
TextureReadyToRender null Microsoft.DirectX.AudioVideoPlayback.TextureRenderEventHandler

PS: Witziges Movie^^