Click here to Skip to main content
15,879,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Showing image Pin
namaskaaram7-Dec-04 21:11
namaskaaram7-Dec-04 21:11 
GeneralRe: Showing image Pin
John R. Shaw7-Dec-04 21:23
John R. Shaw7-Dec-04 21:23 
Generaltemplate syntax help Pin
Tariq8787-Dec-04 20:14
Tariq8787-Dec-04 20:14 
GeneralRe: template syntax help Pin
John R. Shaw7-Dec-04 20:42
John R. Shaw7-Dec-04 20:42 
GeneralRe: template syntax help Pin
Michael Dunn7-Dec-04 21:18
sitebuilderMichael Dunn7-Dec-04 21:18 
GeneralFriend Function Pin
Abuamr7-Dec-04 19:54
Abuamr7-Dec-04 19:54 
GeneralRe: Friend Function Pin
John R. Shaw7-Dec-04 20:20
John R. Shaw7-Dec-04 20:20 
Generala prb. related to DirectShow using VC++ Pin
mirhamzah7-Dec-04 19:34
mirhamzah7-Dec-04 19:34 
got a problem in the following code

void main()
{
IGraphBuilder *pGraph = NULL;
IMediaControl *pControl = NULL;
IMediaEvent *pEvent = NULL;

// Initialize the COM library.
HRESULT hr = CoInitialize(NULL);
if (FAILED(hr))
{
printf("ERROR - Could not initialize COM library");
return;
}



// Create the filter graph manager and query for interfaces.
hr = CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER,
IID_IGraphBuilder, (void **)&pGraph);
if (FAILED(hr))
{
printf("ERROR - Could not create the Filter Graph Manager.");
return;
}

hr = pGraph->QueryInterface(IID_IMediaControl, (void **)&pControl);
hr = pGraph->QueryInterface(IID_IMediaEvent, (void **)&pEvent);

// Build the graph. IMPORTANT: Change this string to a file on your system.
hr = pGraph->RenderFile(L"C:\\Example.avi", NULL);
if (SUCCEEDED(hr))
{
// Run the graph.
hr = pControl->Run();
if (SUCCEEDED(hr))
{
// Wait for completion.
long evCode;
pEvent->WaitForCompletion(INFINITE, &evCode);

// Note: Do not use INFINITE in a real application, because it
// can block indefinitely.
}
}
pControl->Release();
pEvent->Release();
pGraph->Release();
CoUninitialize();
}


the compliler says, "Unresolved externals;
CLSID_FilterGraph
IID_IMediaEvent
IID_IMediaControl
IID_IGraphBuilder

mir
GeneralRe: a prb. related to DirectShow using VC++ Pin
ssing7-Dec-04 20:55
ssing7-Dec-04 20:55 
GeneralRe: a prb. related to DirectShow using VC++ Pin
ssing7-Dec-04 20:59
ssing7-Dec-04 20:59 
Generalmfc Pin
sreeja777-Dec-04 19:15
sreeja777-Dec-04 19:15 
GeneralRe: mfc Pin
namaskaaram7-Dec-04 21:25
namaskaaram7-Dec-04 21:25 
GeneralDownloading a file with https URL Pin
ssing7-Dec-04 19:08
ssing7-Dec-04 19:08 
GeneralRe: Downloading a file with https URL Pin
ThatsAlok7-Dec-04 19:58
ThatsAlok7-Dec-04 19:58 
GeneralRe: Downloading a file with https URL Pin
ssing7-Dec-04 21:02
ssing7-Dec-04 21:02 
GeneralTAPI Pin
John R. Shaw7-Dec-04 16:51
John R. Shaw7-Dec-04 16:51 
GeneralRe: TAPI Pin
ThatsAlok7-Dec-04 17:13
ThatsAlok7-Dec-04 17:13 
GeneralRe: TAPI Pin
John R. Shaw7-Dec-04 18:00
John R. Shaw7-Dec-04 18:00 
GeneralRe: TAPI Pin
ThatsAlok7-Dec-04 22:15
ThatsAlok7-Dec-04 22:15 
GeneralLoadLibrary fails, getlasterror = 6. DLL Loaded made in VC++ .net Pin
SteQve7-Dec-04 16:50
SteQve7-Dec-04 16:50 
GeneralRe: LoadLibrary fails, getlasterror = 6. DLL Loaded made in VC++ .net Pin
Steve S7-Dec-04 23:35
Steve S7-Dec-04 23:35 
GeneralRe: LoadLibrary fails, getlasterror = 6. DLL Loaded made in VC++ .net Pin
SteQve8-Dec-04 0:04
SteQve8-Dec-04 0:04 
GeneralRe: LoadLibrary fails, getlasterror = 6. DLL Loaded made in VC++ .net Pin
SteQve8-Dec-04 0:32
SteQve8-Dec-04 0:32 
GeneralCommon handler for all dialog controls Pin
Raghunandan S7-Dec-04 16:39
Raghunandan S7-Dec-04 16:39 
GeneralRe: Common handler for all dialog controls Pin
John R. Shaw7-Dec-04 17:23
John R. Shaw7-Dec-04 17:23 

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.