Re: Playing a video in vb.net using directshownet library?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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



.



Relevant Pages

  • Re: SharePoint Namespaces
    ... WSS SDK and I have no clue what that even did. ... Microsoft.SharePoint.dll and it was not present on my local machine. ... "dll was loaded, but the DLLRegisterServer entry point was not found. ... You may install WSS or SPS SDK on your development computer and this ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: When were scanf_s functions introduced?
    ... My knowledge of doing complicated MSI setup apps is fairly limited, ... installers, one that is a "full install" (includes everything and will be ... then the amount of space for the CRT ... the CRT dll MSVCR80.dll? ...
    (microsoft.public.platformsdk.security)
  • Re: When were scanf_s functions introduced?
    ... one that is a "web install" (checks dependencies and only downloads those that are missing, ... then the amount of space for the CRT installer is probably not going to matter much and ... the CRT dll MSVCR80.dll? ... Say I have several different apps to deploy. ...
    (microsoft.public.platformsdk.security)
  • Re: Embedded Visual C++ 4 Installation
    ... PPC 2003 SDK. ... 1)I need some guidelines to make a DLL for PPC2003. ... >> Please install at least one CE platform SDK before launching Microsoft ...
    (microsoft.public.pocketpc.developer)
  • Re: How is a DLL replaced in XP-home???? - Michael please read.
    ... How do you know the dll on the CD-R is good or any better than the version ... on the disk provided by HP. ... From what source was the CD-R made. ... We have a> GOOD but older copy of the DLL on a CD-R we want to install. ...
    (microsoft.public.windowsxp.basics)