Getting the Microsoft Windows Media Format 9.5 SDK Working
This brief tutorial will detail how to get and install the official Microsoft SDK for MTP programming. The SDK is a little old, so minor tweaks are necessary to make it work in modern development environments.
- Download the Windows Media Format 9.5 SDK, which includes the Windows Media Device Manager 10 SDK. The SDK should be available at http://msdn.microsoft.com/windowsmedia/downloads/default.aspx (wmformat95sdk.exe).
- Install the SDK.
- Add the new lib and include directories (by default, c:\wmsdk\wmfsdk95\include, c:\wmsdk\wmfsdk95\wmdm\inc, c:\wmsdk\wmfsdk95\lib, and c:\wmsdk\wmfsdk95\wmdm\lib) into your IDE. For VS2005, this is done by selecting the panel at Tools..Options..Projects&Solutions..VC++ Directories. Other Microsoft development environments are similar.
- The nmake command which is going to be used to compile the sample applicaton doesn't seem to see the new directories entered into the IDE above, so copy the include files from c:\wmsdk\wmfsdk95\include to c:\wmsdk\wmfsdk95\wmdm\inc (adjust if you put the SDK elsewhere).
- The nmake command also has trouble with the WMVCORE.lib file -- copy it from c:\wmsdk\wmfsdk95\lib to your Visual Studio environment's main 32-bit library directory (varies by VS installation, but you can find it in the IDE).
- Edit the file c:\wmsdk\wmfsdk95\wmdm\apps\wmdmapp\properties.cpp, line 688. Add an "int" to the line "for (i..." such that the line starts "for (int i..." instead.
- Launch Visual Studio, and select Tools...Visual Studio 200X Command Prompt.
- Navigate to c:\wmsdk\wmfsdk95\wmdm\ and type "nmake".
- The application should now be built and in the directory c:\wmsdk\wmfsdk95\wmdm\apps\wmdmapp\WIN2000_DEBUG.
Last modified at 12/5/2007 2:08 PM by Phillip Williams