Link error PlayWndASF MicroSoft Sample

I can't compile PlayWndASF sample from DirectX 9 installation.
Cam anybody give me WMStub.lib
---------------------------------------------------------------------------------------
NOTE: To link and run this sample, you must install the Windows Media Format SDK 7.1.1.
After downloading the Format SDK, you can extract a public version of the
WMStub.LIB library, which should be copied to the Samples\C++\DirectShow\Common folder.
This library is necessary for enabling Windows Media content.
Without this library in the Common folder, the link will fail with:
LNK1104: cannot open file '..\..\common\wmstub.lib'
If you remove the WMStub.lib from the project's linker settings, the linker
will fail with this unresolved reference:
WMCreateCertificate
---------------------------------------------------------------------------------------
PlayWndASF.cpp
urllaunch.cpp
Linking...
LINK : fatal error LNK1181: cannot open input file "..\..\common\wmstub.lib"
Error executing link.exe.

PlayWndASF.exe - 1 error(s), 0 warning(s)




Answer this question

Link error PlayWndASF MicroSoft Sample

  • PeterVrenken

    WMStub.lib is no longer required in Format SDK 9.0. Remove the file from the link settings.

    From the keyprovider.cpp file:

    "// Windows Media 9 Series (code named 'Corona') no longer requires
    // a stub library. If using WMF9, we don't need to provide a CKeyProvider
    // implementation, and we don't need to link with the WMStub.lib library."

    Remove this file from the project as well. Or #define TARGET_WMF9



  • Mike Vargas

    DirectShow hasn't been part of the DirectX SDK for well over a year, which tells me you're using a very old SDK.
    I'm moving this thread to the DirectShow forums, where you're more likely to find help...


  • Link error PlayWndASF MicroSoft Sample