locked
mfreadwrite.dll not found RRS feed

  • Question

  • Hi, I built the example program provided @ http://msdn.microsoft.com/en-us/library/dd757929(VS.85).aspx, got it to build successfully, but when I try to debug it, it errors off with message indicating that mfreadwrite.dll can not be found.  Mfreadwrite.lib is found, as well as the Mfreadwrite.h file, but nowhere have I seen the dll.  Can anyone say where the dll is found?

    OS: Windows Vista (tm) Enterprise, Service pack 2

    I installed Windows SDK for Windows 7 & .NET Framework 3.5 Service Pack 1.

    So if anyone there can help me figure out what is wrong I'd be very glad.

    Thursday, March 18, 2010 7:19 PM

Answers

All replies

  • mfreadwrite.dll (source reader/sink writer) is new in Win7: http://msdn.microsoft.com/en-us/library/bb970511%28v=VS.85%29.aspx#programming_model

    • Proposed as answer by The March Hare Thursday, March 18, 2010 8:45 PM
    • Marked as answer by The March Hare Wednesday, March 31, 2010 12:46 AM
    Thursday, March 18, 2010 7:50 PM
  • Well, thank you for that. In fact I previously saw the article you link.   Unfortunately, I am no closer to my goal, I cannot get the program to run.  I went so far as to copy mfreadwrite.dll from a W7 machine to my vista machine, copied mfreadwrite.dll to both C:\windows\system32 and to the startup directory of the executable, nothing changes, program still fails as noted above.    It seems that the sample will only run under W7, not vista?  Anyone?

     

    Monday, March 22, 2010 4:05 PM
  • As Matthieu wrote, this DLL is only available on Win7.  You cannot simply copy it to a Vista system because:

    - Doing so is a copyright violation.

    - It is not designed to run on Vista.

    The sample only runs on Win7.


    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    • Marked as answer by The March Hare Wednesday, March 31, 2010 12:46 AM
    Monday, March 22, 2010 4:13 PM
  • Well, if everyone who copied a dll file from one system to another in a vain effort to try to get something working was taken out and shot, there wouldn't be enough grave space on this earth, and the next few put together.

    Thanks for the straight answer.

    Monday, March 22, 2010 7:39 PM
  • Thanks for your assessment :)  IMO, you are seriously overestimating the percentage of people who know what a DLL is ;)

    On the MSFT forums, we're obligated to stick to what's legally allowed based on the Terms of Use here.

    In any event, the bottom line is that the DLL doesn't work on Vista just like you can't take the MPEG-2 decoder from Vista and make it work on XP (at least not without some complicated reverse-engineering).


    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    Monday, March 22, 2010 8:03 PM
  • I went through the same hoops of building the Video Thumbnail app, and finding it works fine for Windows 7, but not under Vista.

    As per The March Hare's link to the MS docs on Media Foundation (http://msdn.microsoft.com/en-us/library/bb970511(v=VS.85).aspx#programming_model), you find that:

    “In Windows Vista, Media Foundation exposed a relatively low-level set of APIs. These APIs are flexible, but too complex for simple tasks. Windows 7 adds new high-level APIs that make it simpler to write media applications in C++."

    So the upshot of all this is that if you want to build any app that works under both Vista and Windows 7 using Microsoft Media Foundation, you have to use the "relatively low level APIs".  Dang.  Why did they have to do that!

    And it is not clear from the MS documentation which of the sample apps should work under both Vista and Windows 7, or which parts of the API are valid only under Windows 7.  Perhaps the solution is to work only with the older releases of the Windows SDK?

     

     

    Monday, July 26, 2010 11:29 PM
  • On Mon, 26 Jul 2010 23:29:43 +0000, CuriousKea wrote:

    And it is not clear from the MS documentation which of the sample apps should work under both Vista and Windows 7, or which parts of the API are valid only under Windows 7...

    Here's a good list of what's new in Windows 7:

    http://msdn.microsoft.com/en-us/library/bb970511(VS.85).aspx

    Also, in general, each interface in the reference docs lists what the
    minimum client and server version of Windows is for it to be
    supported.


    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    Tuesday, July 27, 2010 3:01 AM