Click here to Skip to main content
15,900,719 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How I can use DirectShow Pin
yaminisridaran12-Jul-07 2:00
yaminisridaran12-Jul-07 2:00 
GeneralRe: How I can use DirectShow Pin
Hamid_RT12-Jul-07 2:06
Hamid_RT12-Jul-07 2:06 
GeneralRe: How I can use DirectShow Pin
yaminisridaran12-Jul-07 2:19
yaminisridaran12-Jul-07 2:19 
GeneralRe: How I can use DirectShow Pin
yaminisridaran12-Jul-07 2:24
yaminisridaran12-Jul-07 2:24 
GeneralRe: How I can use DirectShow Pin
Hamid_RT13-Jul-07 1:44
Hamid_RT13-Jul-07 1:44 
AnswerRe: How I can use DirectShow Pin
#realJSOP12-Jul-07 1:35
professional#realJSOP12-Jul-07 1:35 
AnswerRe: How I can use DirectShow Pin
Mark Salsbery12-Jul-07 5:31
Mark Salsbery12-Jul-07 5:31 
GeneralRe: How I can use DirectShow Pin
yaminisridaran12-Jul-07 18:42
yaminisridaran12-Jul-07 18:42 
Thank You for ur reply.

I am new to directshow.I am trying to write an application to capture video from web cam.
I am getting ICaptureGraphBuilder2 undeclared identifier.
I have added the Dshow.h to my code
I have added the Quartz.lib Strmiids.lib strmbasd.lib wmvcore.lib wmstub.lib
in the project settings

But when i compile my code I am getting the following errors:
D:\DownLoad\LiveVideo\CaptureVideo.cpp(10) : warning C4651: '/D_MBCS __cplusplus' specified for precompiled header but not for current compile
d:\download\livevideo\capturevideo.h(114) : error C2143: syntax error : missing ';' before '*'
d:\download\livevideo\capturevideo.h(114) : error C2501: 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
d:\download\livevideo\capturevideo.h(114) : error C2501: 'm_pCapture' : missing storage-class or type specifiers
d:\download\livevideo\capturevideo.h(122) : error C2143: syntax error : missing ';' before '*'
d:\download\livevideo\capturevideo.h(122) : error C2501: 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
d:\download\livevideo\capturevideo.h(122) : error C2501: 'm_pCaptureMoniker' : missing storage-class or type specifiers
D:\DownLoad\LiveVideo\CaptureVideo.cpp(33) : error C2065: 'm_pCapture' : undeclared identifier
D:\DownLoad\LiveVideo\CaptureVideo.cpp(40) : error C2065: 'm_pCaptureMoniker' : undeclared identifier
D:\DownLoad\LiveVideo\CaptureVideo.cpp(104) : error C2065: 'CLSID_CaptureGraphBuilder2' : undeclared identifier
D:\DownLoad\LiveVideo\CaptureVideo.cpp(105) : error C2065: 'IID_ICaptureGraphBuilder2' : undeclared identifier
D:\DownLoad\LiveVideo\CaptureVideo.cpp(315) : error C2065: 'LONG_PTR' : undeclared identifier
D:\DownLoad\LiveVideo\CaptureVideo.cpp(315) : error C2059: syntax error : ')'
D:\DownLoad\LiveVideo\CaptureVideo.cpp(316) : error C2143: syntax error : missing ';' before '{'
D:\DownLoad\LiveVideo\CaptureVideo.cpp(342) : error C2227: left of '->SetFiltergraph' must point to class/struct/union
D:\DownLoad\LiveVideo\CaptureVideo.cpp(381) : error C2227: left of '->RenderStream' must point to class/struct/union
D:\DownLoad\LiveVideo\CaptureVideo.cpp(442) : error C2065: 'DWORD_PTR' : undeclared identifier
D:\DownLoad\LiveVideo\CaptureVideo.cpp(442) : error C2146: syntax error : missing ')' before identifier 'pUnkGraph'
D:\DownLoad\LiveVideo\CaptureVideo.cpp(443) : error C2059: syntax error : ')'
D:\DownLoad\LiveVideo\CaptureVideo.cpp(509) : error C2227: left of '->Release' must point to class/struct/union
D:\DownLoad\LiveVideo\CaptureVideo.cpp(538) : error C2227: left of '->Release' must point to class/struct/union
D:\DownLoad\LiveVideo\CaptureVideo.cpp(713) : error C2227: left of '->SetFiltergraph' must point to class/struct/union
D:\DownLoad\LiveVideo\CaptureVideo.cpp(721) : error C2227: left of '->RenderStream' must point to class/struct/union
D:\DownLoad\LiveVideo\CaptureVideo.cpp(862) : error C2059: syntax error : ')'
D:\DownLoad\LiveVideo\CaptureVideo.cpp(863) : error C2143: syntax error : missing ';' before '{'
D:\DownLoad\LiveVideo\CaptureVideo.cpp(868) : error C2065: 'EC_DEVICE_LOST' : undeclared identifier
D:\DownLoad\LiveVideo\CaptureVideo.cpp(868) : error C2051: case expression not constant
D:\DownLoad\LiveVideo\CaptureVideo.cpp(920) : error C2146: syntax error : missing ')' before identifier 'pUnkGraph'
D:\DownLoad\LiveVideo\CaptureVideo.cpp(921) : error C2059: syntax error : ')'
D:\DownLoad\LiveVideo\CaptureVideo.cpp(1001) : error C2227: left of '->FindInterface' must point to class/struct/union
D:\DownLoad\LiveVideo\CaptureVideo.cpp(1005) : error C2227: left of '->FindInterface' must point to class/struct/union
D:\DownLoad\LiveVideo\CaptureVideo.cpp(1067) : error C2227: left of '->FindInterface' must point to class/struct/union
D:\DownLoad\LiveVideo\CaptureVideo.cpp(1071) : error C2227: left of '->FindInterface' must point to class/struct/union
D:\DownLoad\LiveVideo\CaptureVideo.cpp(1145) : error C2227: left of '->FindInterface' must point to class/struct/union
D:\DownLoad\LiveVideo\CaptureVideo.cpp(1149) : error C2227: left of '->FindInterface' must point to class/struct/union
LiveVideo.cpp
D:\DownLoad\LiveVideo\LiveVideo.cpp(4) : warning C4651: '/D_MBCS __cplusplus' specified for precompiled header but not for current compile
d:\download\livevideo\capturevideo.h(114) : error C2143: syntax error : missing ';' before '*'
d:\download\livevideo\capturevideo.h(114) : error C2501: 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
d:\download\livevideo\capturevideo.h(114) : error C2501: 'm_pCapture' : missing storage-class or type specifiers
d:\download\livevideo\capturevideo.h(122) : error C2143: syntax error : missing ';' before '*'
d:\download\livevideo\capturevideo.h(122) : error C2501: 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
d:\download\livevideo\capturevideo.h(122) : error C2501: 'm_pCaptureMoniker' : missing storage-class or type specifiers
LiveVideoDlg.cpp
D:\DownLoad\LiveVideo\LiveVideoDlg.cpp(4) : warning C4651: '/D_MBCS __cplusplus' specified for precompiled header but not for current compile
d:\download\livevideo\capturevideo.h(114) : error C2143: syntax error : missing ';' before '*'
d:\download\livevideo\capturevideo.h(114) : error C2501: 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
d:\download\livevideo\capturevideo.h(114) : error C2501: 'm_pCapture' : missing storage-class or type specifiers
d:\download\livevideo\capturevideo.h(122) : error C2143: syntax error : missing ';' before '*'
d:\download\livevideo\capturevideo.h(122) : error C2501: 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
d:\download\livevideo\capturevideo.h(122) : error C2501: 'm_pCaptureMoniker' : missing storage-class or type specifiers
Generating Code...
Error executing cl.exe.

Please help me

S.Yamini
GeneralRe: How I can use DirectShow Pin
Hamid_RT13-Jul-07 1:43
Hamid_RT13-Jul-07 1:43 
GeneralRe: How I can use DirectShow Pin
Mark Salsbery13-Jul-07 17:14
Mark Salsbery13-Jul-07 17:14 
QuestionChange BAR Color of CProgressCtrl Pin
CodeMak11-Jul-07 23:47
CodeMak11-Jul-07 23:47 
AnswerRe: Change BAR Color of CProgressCtrl Pin
Nibu babu thomas11-Jul-07 23:53
Nibu babu thomas11-Jul-07 23:53 
GeneralRe: Change BAR Color of CProgressCtrl Pin
CodeMak11-Jul-07 23:56
CodeMak11-Jul-07 23:56 
GeneralRe: Change BAR Color of CProgressCtrl Pin
Nibu babu thomas12-Jul-07 0:11
Nibu babu thomas12-Jul-07 0:11 
GeneralRe: Change BAR Color of CProgressCtrl Pin
CodeMak12-Jul-07 0:34
CodeMak12-Jul-07 0:34 
AnswerRe: Change BAR Color of CProgressCtrl Pin
David Crow12-Jul-07 2:33
David Crow12-Jul-07 2:33 
QuestionEnumerating all paths on a drive? Pin
Lord Kixdemp11-Jul-07 23:41
Lord Kixdemp11-Jul-07 23:41 
AnswerRe: Enumerating all paths on a drive? Pin
Nibu babu thomas11-Jul-07 23:55
Nibu babu thomas11-Jul-07 23:55 
GeneralRe: Enumerating all paths on a drive? Pin
Lord Kixdemp12-Jul-07 0:12
Lord Kixdemp12-Jul-07 0:12 
GeneralRe: Enumerating all paths on a drive? Pin
Nibu babu thomas12-Jul-07 0:22
Nibu babu thomas12-Jul-07 0:22 
AnswerRe: Enumerating all paths on a drive? Pin
Michael Dunn12-Jul-07 8:32
sitebuilderMichael Dunn12-Jul-07 8:32 
QuestionUnicode support for MS-Chart control Pin
RaviPK11-Jul-07 22:52
RaviPK11-Jul-07 22:52 
QuestionWord game Pin
Yustme11-Jul-07 22:48
Yustme11-Jul-07 22:48 
AnswerRe: Word game Pin
Rage12-Jul-07 0:17
professionalRage12-Jul-07 0:17 
GeneralRe: Word game Pin
Yustme12-Jul-07 0:34
Yustme12-Jul-07 0:34 

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.