Click here to Skip to main content
16,010,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHElpp Pin
1-Oct-01 12:23
suss1-Oct-01 12:23 
GeneralRe: HElpp Pin
Christian Graus1-Oct-01 13:51
protectorChristian Graus1-Oct-01 13:51 
GeneralOnTimer(UINT nIDEvent) Pin
RobJones1-Oct-01 12:01
RobJones1-Oct-01 12:01 
GeneralRe: OnTimer(UINT nIDEvent) Pin
Paolo Messina1-Oct-01 12:23
professionalPaolo Messina1-Oct-01 12:23 
GeneralRe: OnTimer(UINT nIDEvent) Pin
Nemanja Trifunovic1-Oct-01 12:24
Nemanja Trifunovic1-Oct-01 12:24 
GeneralRe: OnTimer(UINT nIDEvent) Pin
RobJones1-Oct-01 12:52
RobJones1-Oct-01 12:52 
Generalvideo into C++/MFC Pin
john john mackey1-Oct-01 10:08
john john mackey1-Oct-01 10:08 
GeneralRe: video into C++/MFC Pin
Christian Graus1-Oct-01 10:47
protectorChristian Graus1-Oct-01 10:47 
Directshow. If you #include <dshow.h> and link to Strmiids.lib Strmbasd.lib for debug and Strmiids.lib Strmbase.lib for release, you can play a video like this:

HRESULT hr;

IGraphBuilder *pGraph;
IMediaControl *pMediaControl;
IMediaEvent *pEvent;
IMediaSeeking * pSeek;
IVideoWindow * pWindow;

// Create the filter graph manager and query for interfaces.
CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER,
IID_IGraphBuilder, (void **)&pGraph);
pGraph->QueryInterface(IID_IMediaControl, (void **)&pMediaControl);
pGraph->QueryInterface(IID_IMediaEvent, (void **)&pEvent);
pGraph->QueryInterface(IID_IMediaSeeking, (void **)&pSeek);
pGraph->QueryInterface(IID_IVideoWindow, (void **)&pWindow);

pGraph->RenderFile((bstr_t)lpszMovie, NULL);

pMediaControl->Run();



Christian

As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.

Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
GeneralRe: video into C++/MFC Pin
2-Nov-01 2:56
suss2-Nov-01 2:56 
GeneralRandom numbers Pin
1-Oct-01 9:23
suss1-Oct-01 9:23 
GeneralRe: Random numbers Pin
Mike Nordell1-Oct-01 9:38
Mike Nordell1-Oct-01 9:38 
GeneralRe: Random numbers Pin
1-Oct-01 9:59
suss1-Oct-01 9:59 
GeneralI ve run out of ideas Pin
1-Oct-01 9:12
suss1-Oct-01 9:12 
GeneralRe: I ve run out of ideas Pin
Mike Nordell1-Oct-01 9:46
Mike Nordell1-Oct-01 9:46 
GeneralRe: I ve run out of ideas Pin
Joaquín M López Muñoz1-Oct-01 9:51
Joaquín M López Muñoz1-Oct-01 9:51 
GeneralRe: I ve run out of ideas Pin
1-Oct-01 12:54
suss1-Oct-01 12:54 
GeneralSMTP Commands (Read Receipts) Pin
Bret Faller1-Oct-01 9:03
Bret Faller1-Oct-01 9:03 
GeneralRe: SMTP Commands (Read Receipts) Pin
Mike Nordell1-Oct-01 9:49
Mike Nordell1-Oct-01 9:49 
GeneralRe: SMTP Commands (Read Receipts) Pin
Bret Faller2-Oct-01 13:11
Bret Faller2-Oct-01 13:11 
GeneralA question about thread programming Pin
Chaos Lawful1-Oct-01 8:17
Chaos Lawful1-Oct-01 8:17 
GeneralRe: A question about thread programming Pin
Joaquín M López Muñoz1-Oct-01 8:26
Joaquín M López Muñoz1-Oct-01 8:26 
GeneralBitmap question Pin
#realJSOP1-Oct-01 8:13
professional#realJSOP1-Oct-01 8:13 
GeneralRe: Bitmap question Pin
Mike Nordell1-Oct-01 9:52
Mike Nordell1-Oct-01 9:52 
GeneralRe: Bitmap question Pin
Paolo Messina1-Oct-01 12:33
professionalPaolo Messina1-Oct-01 12:33 
Generalcreating COM objects in Visual C++ to work in vbscript Pin
David Higgins1-Oct-01 7:39
David Higgins1-Oct-01 7:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.