Click here to get back home

About 'Capture Device Selection' in DirectShow

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
About 'Capture Device Selection' in DirectShow abc9250 02-07-2006
Get Chitika Premium
Posted by abc9250 on February 7, 2006, 4:34 am
Please log in for more thread options
At First, I have already studied the following links:
http://groups.google.com.tw/group/microsoft.public.smartphone.developer/browse_thread/thread/8845a0d1545c82fd/15addd590cef5d1d?lnk=st&q=directshow+camera+smartphone&rnum=1&hl=zh-TW#15addd590cef5d1d
http://groups.google.com.tw/group/microsoft.public.smartphone.developer/browse_thread/thread/c9a4b3a393d4aa8a/eb7e3510d0004847?lnk=st&q=directshow+camera+smartphone&rnum=14&hl=zh-TW#eb7e3510d0004847

But I still don't know how to make the following code work:
==========================================
// Initialize the video capture filter
pVideoCap.CoCreateInstance( CLSID_VideoCapture );

varCamName = L"CAM1:";
if(( varCamName.vt == VT_BSTR ) == NULL ) {
return E_OUTOFMEMORY;
}
PropBag.Write( L"VCapName", &varCamName );
pPropertyBag->Load( &PropBag, NULL );
pPropertyBag.Release();
pGraph->AddFilter( pVideoCap, L"Video capture source" );
==========================================
I modify the statement
pVideoCap.QueryInterface( &pPropertyBag );
to
hr = CoCreateInstance(CLSID_PropertyBag, NULL,
CLSCTX_INPROC,IID_IPropertyBag, (void **)&pPropertyBag);
But when I build , the build tool show me error message: "error C2065:
'CLSID_PropertyBag' : undeclared identifier".
What should I do ? I search the MSDN and google and I don't find any
question about that.
Thank you.


Similar ThreadsPosted
DirectShow audio capture December 13, 2006, 7:28 am
WM 5.0 DirectShow - How to set the best quality for image capture? March 28, 2006, 1:40 pm
Video Capture Performance with directshow June 2, 2007, 11:05 am
DirectShow Audio Capture Dropping Samples June 3, 2005, 2:30 am
Item selection in a ListBox July 21, 2005, 3:03 am
Menu selection on reminders October 9, 2007, 6:52 am
Listbox spin button vs. selection list August 3, 2005, 2:27 am
About the ConnMgr's connections path selection logic June 28, 2006, 11:35 pm
Capture END key in smartphone using C# June 18, 2008, 9:45 am
How to capture notification data? April 16, 2006, 9:45 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap