   avi file replay
  Hi. I use DirectX 9 & I want to play my .avi file in my application. I have already loaded the avi file & played it, but I have no idea how can I play it again. I mean the avi file is played only once but I want to play it multiple times. Any idea? Thanks in advance. Here's my code:IGraphBuilder *pGB;IMediaControl *pMC;IVideoWindow *pVW;//This creates the filter graph manager:    CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC, IID_IGraphBuilder,   (void **)&pGB);    //Query COM interface:    pGB->QueryInterface(IID_IMediaControl, (void **)&pMC);    pGB->QueryInterface(IID_IVideoWindow, (void **)&pVW);//next we build the graph:pGB->RenderFile(L"E:\\GDK utility\\Animations\\congrat1.avi",NULL);//Set the parents window    pVW->put_Owner((OAHWND)hWnd);    //Sets the child window    pVW->put_Windowstyle(WS_CHILD | WS_CLIPSIBLINGS);    //here we create a RECT in which to draw the child window on    RECT vwrect;    //get the size of the Parent    GetClientRect(hWnd,&vwrect);    //Set the Child to this position    pVW->SetWindowPosition(0,0,vwrect.right,vwrect.bottom);    //and now the long awaited play    pMC->Run();   
  I think you should read this page, especially the remarks section:Click me!;  Thanks for the help. I know what to do now. I will rate you right away.   