I am writing a C # application that should read the properties of video video files. The only way I found this is with the Microsoft Media Foundation, which requires C ++.
So far, I have made some progress:
- I created a C ++ managed assembly that compiles into a DLL.
- I can name it with a parameter from C # code.
- It runs and prints the properties of the video file.
What I would like to do next is to return a DLL object of video properties (width, height, duration, etc.). Given that I use managed code in C ++, is there an easy way to determine the type of object and use it to transfer data between C # and C ++, or do I need to use the Marshal class?
James source
share