Re: Playing a video in vb.net using directshownet library?
- From: "Alessandro Angeli [MVP::DS/MF]" <nobody@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 10 Jun 2006 22:44:17 +0200
Peter Duniho wrote:
Be that as it may, I am sure that I didn't run a Managed
DirectX Runtime installer explicitly. It may well have
been implicit as I installed something else (like an
SDK), but I didn't have to do anything extra to get it on
my development computer.
I think that's because you installed a recent DX SDK, while
older ones did not install MDX by default. The user runtime
does not seem to install MDX (at least on my XP PRO SP2 with
all WU updates there is no MDX).
How this affects redistribution of a program that uses
it, I don't know. I'm still learning about C#, and it's
not 100% clear to me yet what all an "assembly" does, and
what happens to one's C# program when one compiles with a
specific assembly.
Assembly is just a fancy way of saying DLL in the managed
world (or, more precisely, PE module). So an assembly is not
liked in you program but only referenced and liked at
runtime, exactly like a DLL. Which means that, when a
referenced assembly is missing, the same happens as when a
referenced DLL is missing (that is, either a runtime
exception or a loader error depending on when the assembly
is loaded).
I haven't tried running a C# program that uses AVP on a
computer that hasn't specifically been set up the way my
development computer has been and don't know whether the
necessary links to the actual DirectX stuff gets compiled
into my program that uses AVP, or if one has to make sure
those links already exist (via some setup such as you
describe) on each computer on which you want to run the
program.
Personally, it seems to me that if Microsoft did the C#
stuff right, then the interface would travel around with
the application that needs it, rather than requiring
every computer to have the full MDX extensions installed.
But that's just my own opinion of "right", and even if
it's a correct opinion there's no guarantee that's how it
was actually done. :)
That would be easier, but also inefficient, a waste of
resources and it would make it impossible to update the used
components. It's the same issue of native link library vs.
shared DLL: both have their pros and cons and are better
suited for some uses but not others.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// a dot angeli at psynet dot net
.
- References:
- Re: Playing a video in vb.net using directshownet library?
- From: lgs.lgs
- Re: Playing a video in vb.net using directshownet library?
- From: Alessandro Angeli [MVP::DS/MF]
- Re: Playing a video in vb.net using directshownet library?
- From: Alessandro Angeli [MVP::DS/MF]
- Re: Playing a video in vb.net using directshownet library?
- From: Peter Duniho
- Re: Playing a video in vb.net using directshownet library?
- From: Alessandro Angeli [MVP::DS/MF]
- Re: Playing a video in vb.net using directshownet library?
- From: Peter Duniho
- Re: Playing a video in vb.net using directshownet library?
- Prev by Date: Re: Multi-posting was: Re: Getting Picture from timeline
- Next by Date: Re: Multi-posting was: Re: Getting Picture from timeline
- Previous by thread: Re: Playing a video in vb.net using directshownet library?
- Next by thread: Why initial 1-2 sec stream from webcam is very dark?
- Index(es):
Relevant Pages
|