Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends, I'm new to VC++.I read a article named Capture Live Video from various Video Devices.I downloaded the sorce code of the article and after compiling it show three errors like fatal error C1083: Cannot open include file: 'dshow.h': No such file or directory.So I installed Microsoft platform SDK and included directory through tools-->options-->directory tab and after compiling the source code I am getting 48 error....
e:\documents and settings\livevideo_demo\capturevideo.h(115) : error C2143: syntax error : missing ';' before '*'
e:\documents and settings\livevideo_demo\capturevideo.h(115) : error C2501: 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
e:\documents and settings\\livevideo_demo\capturevideo.h(115) : error C2501: 'm_pCapture' : missing storage-class or type specifiers
e:\documents and settings\livevideo_demo\capturevideo.h(123) : error C2143: syntax error : missing ';' before '*'
e:\documents and settings\livevideo_demo\capturevideo.h(123) : error C2501: 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
e:\documents and settings\livevideo_demo\capturevideo.h(123) : error C2501: 'm_pCaptureMoniker' : missing storage-class or type specifiers
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(33) : error C2065: 'm_pCapture' : undeclared identifier
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(40) : error C2065: 'm_pCaptureMoniker' : undeclared identifier
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(104) : error C2065: 'CLSID_CaptureGraphBuilder2' : undeclared identifier
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(105) : error C2065: 'IID_ICaptureGraphBuilder2' : undeclared identifier
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(315) : error C2065: 'LONG_PTR' : undeclared identifier
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(315) : error C2059: syntax error : ')'
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(316) : error C2143: syntax error : missing ';' before '{'
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(342) : error C2227: left of '->SetFiltergraph' must point to class/struct/union
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(381) : error C2227: left of '->RenderStream' must point to class/struct/union
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(442) : error C2065: 'wsprintfW_instead_use_StringCbPrintfW_or_StringCchPrintfW' : undeclared identifier
E:\Documents and SettingsLiveVideo_demo\CaptureVideo.cpp(442) : error C2065: 'DWORD_PTR' : undeclared identifier
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(442) : error C2146: syntax error : missing ')' before identifier 'pUnkGraph'
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(443) : error C2059: syntax error : ')'
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(509) : error C2227: left of '->Release' must point to class/struct/union
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(538) : error C2227: left of '->Release' must point to class/struct/union
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(713) : error C2227: left of '->SetFiltergraph' must point to class/struct/union
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(721) : error C2227: left of '->RenderStream' must point to class/struct/union
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(862) : error C2059: syntax error : ')'
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(863) : error C2143: syntax error : missing ';' before '{'
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(868) : error C2065: 'EC_DEVICE_LOST' : undeclared identifier
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(868) : error C2051: case expression not constant
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(920) : error C2146: syntax error : missing ')' before identifier 'pUnkGraph'
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(921) : error C2059: syntax error : ')'
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(964) : error C2065: '_vsntprintf_instead_use_StringCbVPrintf_or_StringCchVPrintf' : undeclared identifier
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(1001) : error C2227: left of '->FindInterface' must point to class/struct/union
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(1005) : error C2227: left of '->FindInterface' must point to class/struct/union
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(1067) : error C2227: left of '->FindInterface' must point to class/struct/union
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(1071) : error C2227: left of '->FindInterface' must point to class/struct/union
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(1145) : error C2227: left of '->FindInterface' must point to class/struct/union
E:\Documents and Settings\LiveVideo_demo\CaptureVideo.cpp(1149) : error C2227: left of '->FindInterface' must point to class/struct/union
LiveVideo.cpp
e:\documents and settings\livevideo_demo\capturevideo.h(115) : error C2143: syntax error : missing ';' before '*'
e:\documents and settings\livevideo_demo\capturevideo.h(115) : error C2501: 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
e:\documents and settings\livevideo_demo\capturevideo.h(115) : error C2501: 'm_pCapture' : missing storage-class or type specifiers
e:\documents and settings\livevideo_demo\capturevideo.h(123) : error C2143: syntax error : missing ';' before '*'
e:\documents and settings\livevideo_demo\capturevideo.h(123) : error C2501: 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
e:\documents and settings\livevideo_demo\capturevideo.h(123) : error C2501: 'm_pCaptureMoniker' : missing storage-class or type specifiers
LiveVideoDlg.cpp
e:\documents and settings\livevideo_demo\capturevideo.h(115) : error C2143: syntax error : missing ';' before '*'
e:\documents and settings\livevideo_demo\capturevideo.h(115) : error C2501: 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
e:\documents and settings\livevideo_demo\capturevideo.h(115) : error C2501: 'm_pCapture' : missing storage-class or type specifiers
e:\documents and settings\livevideo_demo\capturevideo.h(123) : error C2143: syntax error : missing ';' before '*'
e:\documents and settings\livevideo_demo\capturevideo.h(123) : error C2501: 'ICaptureGraphBuilder2' : missing storage-class or type specifiers
e:\documents and settings\livevideo_demo\capturevideo.h(123) : error C2501: 'm_pCaptureMoniker' : missing storage-class or type specifiers
Generating Code...
Error executing cl.exe.

LiveVideo.exe - 48 error(s), 0 warning(s)

Plz someone help me to findout solution....
Posted

1 solution

I think all those errors are coming because the program cant include dshow.h. Check the installation. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900