ja************@hotmail.com (Jack O'Lantern) wrote:
Like video capture...
When you download the Direct X 9 SDK, there are like 12 samples for
progs for DirectShow in C++, but only 2 in managed languages. Can you
do everything in c# you can do in c++, in DirectX?
How does one "convert" these c++ languages to c#? I'm not as familiar
with c++ as I am with c#, and i'm not sure how I'd say "this line in
c++ would be THIS line c#" and so forth.
The main thing with DirectShow (and the rest of DirectX, I assume) is the
COM interfaces you have to deal with. They are bad enough in C++, so if
you could use COM Interop with C# you might be a lot better off. You'll
need to hit the books/docs on COM interop, but I imagine it is doable.
I'm currently on a project using DirectShow to do video capture, but
since the requirements are that it be done in C++, I haven't looked into
using C# or any of the other .NET facilities. Do a search on
www.codeproject.com, however -- I think I recall someone posting an
article about this topic, and how to get the COM interfaces set up for
use with a .NET language (I could be wrong, and, if so, apologies in
advance).
Also, there are some sharp DirectShow guys on
microsoft.public.win32.programmer.directx.video, which could be helpful.
--
harry