Hi,
I'm working using Vista Ultimate and I've been tried to implement the Media Foundation samples.
I installed, the Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1: BETA, and I uninstalled my previous SDK (Windows SDK for Windows Server 2008 and .NET Framework 3.5), and now I have several problems, first when I try to do the MFStartup function it returns me the MF_E_BAD_STARTUP_VERSION value.
my code has the following lines:
#include<mfplay.h>
#pragmacomment(lib, "mfplat")
#pragmacomment(lib, "mfplay")
const WCHAR *sURL = L"C:\\Butterfly.wmv";
HRESULT hr = MFPCreateMediaPlayer(
sURL, TRUE, // Start playback automatically?
0, // Flags.
NULL, // Callback pointer.
wndHandle,
&g_pPlayer
);
But when I try to run it I get an exception that saids that the mfplay.dll was not found.
I also need to install another package?? If so, what is that package?
This getting starting process has been really frustraiting because does not there a good tutorial just to install the correct packages, please if you know how to solve this problem HELP ME !!!!
- Enby.
I'm working using Vista Ultimate and I've been tried to implement the Media Foundation samples.
I installed, the Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1: BETA, and I uninstalled my previous SDK (Windows SDK for Windows Server 2008 and .NET Framework 3.5), and now I have several problems, first when I try to do the MFStartup function it returns me the MF_E_BAD_STARTUP_VERSION value.
my code has the following lines:
#include
<mfapi.h>#include<mfplay.h>
#pragma
comment(lib, "mf")#pragmacomment(lib, "mfplat")
#pragmacomment(lib, "mfplay")
// Global Variables
const WCHAR *sURL = L"C:\\Butterfly.wmv";
HRESULT hr = MFPCreateMediaPlayer(
sURL, TRUE, // Start playback automatically?
0, // Flags.
NULL, // Callback pointer.
wndHandle,
&g_pPlayer
);
But when I try to run it I get an exception that saids that the mfplay.dll was not found.
I also need to install another package?? If so, what is that package?
This getting starting process has been really frustraiting because does not there a good tutorial just to install the correct packages, please if you know how to solve this problem HELP ME !!!!
- Enby.