W
winceeeee
Hi all,
I am developing an application in C# to record video. For that i am making a
WINCE Dynamic Link Library in Embedded Visual C++ 4.0 which I can call from
my C# application.
I am developing this application for ARMV4I.
In eVCPP 4.0 following is my directory setting:
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\ARMV4
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\mfc\include
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\atl\include
E:\PROGRAM FILES\WINDOWS CE TOOLS\WCE500\WINDOWS MOBILE 5.0 POCKET PC
SDK\INCLUDE\ARMV4I
Following is my stdafx.h file
#include <windows.h>
#include <winbase.h>
#include <atlbase.h>
#include <streams.h>
#include <dmodshow.h>
#include <dshow.h>
#include <dmoreg.h>
#include <wmcodecids.h>
#include <uuids.h>
When I compiled my dll project I am getting following errors.
c:\wince500\pbworkspaces\rabicalc\reldir\unmanaged\unmanaged.h(35) : error
C2065: 'IImageSinkFilter' : undeclared identifier
c:\wince500\pbworkspaces\rabicalc\reldir\unmanaged\unmanaged.h(35) : error
C2955: 'CComPtr' : use of class template requires template argument list
c:\program files\windows ce
tools\wce400\standardsdk\atl\include\atlbase.h(724) : see declaration of
'CComPtr'
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(33) : error
C2065: 'DEVMGR_DEVICE_INFORMATION' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(33) : error
C2146: syntax error : missing ';' before identifier 'di'
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(33) : error
C2065: 'di' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(43) : error
C2228: left of '.dwSize' must have class/struct/union type
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(45) : error
C2065: 'FindFirstDevice' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(45) : error
C2065: 'DeviceSearchByGuid' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(45) : error
C2440: '=' : cannot convert from 'int' to 'void *'
Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(46) : error
C2228: left of '.hDevice' must have class/struct/union type
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(51) : error
C2065: 'StringCchCopy' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(51) : error
C2228: left of '.szLegacyName' must have class/struct/union type
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(93) : error
C2065: 'CLSID_VideoCapture' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(158) :
error C2065: 'CLSID_IMGSinkFilter' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(161) :
error C2784: 'long __cdecl ATL::CComPtr<struct IBaseFilter>::QueryInterface(
** ) const' : could not deduce template argument for ' ** ' from 'class
ATL::CComPtr *'
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(174) :
error C2065: 'm_handle' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(174) :
error C2109: subscript requires array or pointer type
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(174) :
error C2440: '=' : cannot convert from 'void *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(205) :
error C2660: 'QueryInterface' : function does not take 1 parameters
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(264) :
error C2660: 'QueryInterface' : function does not take 1 parameters
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(290) :
error C2065: 'IAMVideoControl' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(290) :
error C2955: 'CComPtr' : use of class template requires template argument list
c:\program files\windows ce
tools\wce400\standardsdk\atl\include\atlbase.h(724) : see declaration of
'CComPtr'
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(290) :
error C2133: 'pVideoControl' : unknown size
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(290) :
error C2512: 'CComPtr' : no appropriate default constructor available
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(290) :
error C2262: 'pVideoControl' : cannot be destroyed
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(297) :
fatal error C1903: unable to recover from previous error(s); stopping
compilation
Anyone know whats wrong in my project setting?
Thanks
I am developing an application in C# to record video. For that i am making a
WINCE Dynamic Link Library in Embedded Visual C++ 4.0 which I can call from
my C# application.
I am developing this application for ARMV4I.
In eVCPP 4.0 following is my directory setting:
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\ARMV4
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\mfc\include
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\atl\include
E:\PROGRAM FILES\WINDOWS CE TOOLS\WCE500\WINDOWS MOBILE 5.0 POCKET PC
SDK\INCLUDE\ARMV4I
Following is my stdafx.h file
#include <windows.h>
#include <winbase.h>
#include <atlbase.h>
#include <streams.h>
#include <dmodshow.h>
#include <dshow.h>
#include <dmoreg.h>
#include <wmcodecids.h>
#include <uuids.h>
When I compiled my dll project I am getting following errors.
c:\wince500\pbworkspaces\rabicalc\reldir\unmanaged\unmanaged.h(35) : error
C2065: 'IImageSinkFilter' : undeclared identifier
c:\wince500\pbworkspaces\rabicalc\reldir\unmanaged\unmanaged.h(35) : error
C2955: 'CComPtr' : use of class template requires template argument list
c:\program files\windows ce
tools\wce400\standardsdk\atl\include\atlbase.h(724) : see declaration of
'CComPtr'
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(33) : error
C2065: 'DEVMGR_DEVICE_INFORMATION' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(33) : error
C2146: syntax error : missing ';' before identifier 'di'
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(33) : error
C2065: 'di' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(43) : error
C2228: left of '.dwSize' must have class/struct/union type
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(45) : error
C2065: 'FindFirstDevice' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(45) : error
C2065: 'DeviceSearchByGuid' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(45) : error
C2440: '=' : cannot convert from 'int' to 'void *'
Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(46) : error
C2228: left of '.hDevice' must have class/struct/union type
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(51) : error
C2065: 'StringCchCopy' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(51) : error
C2228: left of '.szLegacyName' must have class/struct/union type
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(93) : error
C2065: 'CLSID_VideoCapture' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(158) :
error C2065: 'CLSID_IMGSinkFilter' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(161) :
error C2784: 'long __cdecl ATL::CComPtr<struct IBaseFilter>::QueryInterface(
** ) const' : could not deduce template argument for ' ** ' from 'class
ATL::CComPtr *'
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(174) :
error C2065: 'm_handle' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(174) :
error C2109: subscript requires array or pointer type
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(174) :
error C2440: '=' : cannot convert from 'void *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(205) :
error C2660: 'QueryInterface' : function does not take 1 parameters
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(264) :
error C2660: 'QueryInterface' : function does not take 1 parameters
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(290) :
error C2065: 'IAMVideoControl' : undeclared identifier
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(290) :
error C2955: 'CComPtr' : use of class template requires template argument list
c:\program files\windows ce
tools\wce400\standardsdk\atl\include\atlbase.h(724) : see declaration of
'CComPtr'
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(290) :
error C2133: 'pVideoControl' : unknown size
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(290) :
error C2512: 'CComPtr' : no appropriate default constructor available
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(290) :
error C2262: 'pVideoControl' : cannot be destroyed
C:\WINCE500\PBWorkspaces\RabiCalc\RelDir\Unmanaged\Unmanaged.cpp(297) :
fatal error C1903: unable to recover from previous error(s); stopping
compilation
Anyone know whats wrong in my project setting?
Thanks