Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how can update .properties file Pin
Richard MacCutchan10-Mar-13 23:30
mveRichard MacCutchan10-Mar-13 23:30 
GeneralRe: how can update .properties file Pin
venkatesh5286711-Mar-13 19:51
venkatesh5286711-Mar-13 19:51 
GeneralRe: how can update .properties file Pin
Richard MacCutchan11-Mar-13 22:30
mveRichard MacCutchan11-Mar-13 22:30 
QuestionHow to Resize Static Window Objects Pin
Richard Andrew x6410-Mar-13 16:34
professionalRichard Andrew x6410-Mar-13 16:34 
AnswerRe: How to Resize Static Window Objects Pin
Richard MacCutchan10-Mar-13 23:29
mveRichard MacCutchan10-Mar-13 23:29 
GeneralRe: How to Resize Static Window Objects Pin
Richard Andrew x6411-Mar-13 2:13
professionalRichard Andrew x6411-Mar-13 2:13 
GeneralRe: How to Resize Static Window Objects Pin
Richard MacCutchan11-Mar-13 2:47
mveRichard MacCutchan11-Mar-13 2:47 
QuestionWhy moniker? Pin
Vaclav_10-Mar-13 5:46
Vaclav_10-Mar-13 5:46 
This is not a programming "how to", just looking for short explanation/ verification of usage of "moniker".
My basic understanding is that it's function is similar to DOS path, allowing access to an object.
Now it this particular sequence I do not get the enumeration, followed by getting the first moniker and bind it to , I guess filter.
This is part of my code to get data from USB camera and I am still learning how to put all this COM and DirectShow stuff together.
This is what I understand so far – the enumeration identify the “object class” in my case USB cameras and than I can select which one using the Next in loop ( this snippet gets only the first one) and than let the filter “connect / bind “ to the selected camera.
This is still plain COM code , no DirectShow.
Am I right so far?
Thanks for reading.
Cheers Vaclav


TRACE("\nObtain a category enumerator by calling ICreateDevEnum::CreateClassEnumerator with the CLSID of the desired category");
IEnumMoniker* cams = 0;
hr = devs?devs->CreateClassEnumerator (CLSID_VideoInputDeviceCategory, &cams, 0)Blush | :O ;
if (FAILED(hr))
{
TRACE("\nFailed devs->CreateClassEnumerator (CLSID_VideoInputDeviceCategory");
return;
}
ASSERT(cams); // redundant

TRACE("\nget first found capture device (webcam?)");
// moniker - similar to DOS path to get info on object
IMoniker* mon = 0;
hr = cams->Next (1,&mon,0); // get first found capture device (webcam?)
if (FAILED(hr))
{
TRACE("\nFailed get first found capture device (webcam?)");
return;
}
ASSERT( mon);

TRACE("\nBind moniker ( mon) to object ( cam)");
IBaseFilter* cam = 0;
hr = mon->BindToObject(0,0,IID_IBaseFilter, (void**)&cam);
if (FAILED(hr))
{
TRACE("\nFailed Bind moniter ( mon) to object ( cam)");
return;
}
ASSERT( cam);
AnswerRe: Why moniker? Pin
dusty_dex10-Mar-13 6:45
dusty_dex10-Mar-13 6:45 
GeneralRe: Why moniker? Pin
Vaclav_10-Mar-13 7:25
Vaclav_10-Mar-13 7:25 
GeneralRe: Why moniker? Pin
dusty_dex10-Mar-13 7:32
dusty_dex10-Mar-13 7:32 
Joke[Challenge/Puzzle] Implement reinterpret_cast Pin
MicroVirus10-Mar-13 3:55
MicroVirus10-Mar-13 3:55 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Richard MacCutchan10-Mar-13 8:07
mveRichard MacCutchan10-Mar-13 8:07 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
MicroVirus10-Mar-13 10:57
MicroVirus10-Mar-13 10:57 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Brandon-X1200010-Mar-13 11:32
Brandon-X1200010-Mar-13 11:32 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Richard MacCutchan10-Mar-13 23:17
mveRichard MacCutchan10-Mar-13 23:17 
AnswerRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Matthew Faithfull11-Mar-13 1:44
Matthew Faithfull11-Mar-13 1:44 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Stefan_Lang11-Mar-13 23:18
Stefan_Lang11-Mar-13 23:18 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Matthew Faithfull11-Mar-13 23:40
Matthew Faithfull11-Mar-13 23:40 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
MicroVirus13-Mar-13 11:12
MicroVirus13-Mar-13 11:12 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Matthew Faithfull13-Mar-13 11:18
Matthew Faithfull13-Mar-13 11:18 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
MicroVirus13-Mar-13 11:29
MicroVirus13-Mar-13 11:29 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Stefan_Lang11-Mar-13 3:29
Stefan_Lang11-Mar-13 3:29 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
harold aptroot11-Mar-13 9:03
harold aptroot11-Mar-13 9:03 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Stefan_Lang11-Mar-13 22:30
Stefan_Lang11-Mar-13 22:30 

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.