This function will work
#pragma comment ( lib, "winmm.lib" )
#pragma comment ( lib, "vfw32.lib" )
#include <windows.h>
#include <vfw.h>
HWND hwnd_MCIWnd; // MCIWnd window handle
void PlayVideo (HWND hwnd_ParentWindow, LPSTR lpstr, int OriginX, int OriginY, int Width, int Height)
{
DWORD dwMCIWndStyle = WS_CHILD | // child window
WS_VISIBLE | // visible
MCIWNDF_NOTIFYMODE | // notifies of mode changes
MCIWNDF_NOPLAYBAR; // hides toolbar
hwnd_MCIWnd = MCIWndCreate(hwnd_ParentWindow, GetModuleHandle(NULL), dwMCIWndStyle, NULL);
MCIWndOpen(hwnd_MCIWnd, lpstr, NULL); // new device in window
SetWindowPos(hwnd_MCIWnd,NULL,OriginX,OriginY,Width,Height,SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
MCIWndPlay(hwnd_MCIWnd); // plays device
}
//called like:
PlayVideo ( g_pGlob->hWnd, "vidpath.wmv", 0, 0, 800, 600 );
you gotta give a huge thanks for sydbod for this function, he gave me it few weeks ago
even tho it's not very powerful, but i think it does the job