4 Oct 2009 06:25
re: Error in atlwince.h
Hi all, I am creating a WTL mobile project, my purpose is to link it with a C++ directshow engine. It is
supposed to preview the video from the webcam. However there is something wrong when I link it with the
directshow engine, I have included my stdafx.h code and my errors below. I suspect it clashes with
<streams.h>, not too sure about that.
Warning 1 warning C4003: not enough actual parameters for macro 'SelectFont' C:\WTL81_9127\Include\atlwince.h 288 VoWifi
Warning 2 warning C4003: not enough actual parameters for macro 'SelectFont' C:\WTL81_9127\Include\atlwince.h 302 VoWifi
Warning 3 warning C4003: not enough actual parameters for macro 'SelectPen' C:\WTL81_9127\Include\atlwince.h 315 VoWifi
Error 4 error C2059: syntax error : '(' C:\WTL81_9127\Include\atlwince.h 288 VoWifi
Error 5 error C2039: 'dc' : is not a member of 'WTL::CPaintDC' C:\WTL81_9127\Include\atlwince.h 289 VoWifi
Error 6 error C2059: syntax error : '(' C:\WTL81_9127\Include\atlwince.h 302 VoWifi
Error 7 error C2039: 'CPenHandle' : is not a member of 'WTL::CPaintDC' C:\WTL81_9127\Include\atlwince.h 305 VoWifi
Error 8 error C2146: syntax error : missing ';' before identifier 'penOld' C:\WTL81_9127\Include\atlwince.h 305 VoWifi
Error 9 error C2039: 'penOld' : is not a member of 'WTL::CPaintDC' C:\WTL81_9127\Include\atlwince.h 305 VoWifi
Error 10 error C2039: 'dc' : is not a member of 'WTL::CPaintDC' C:\WTL81_9127\Include\atlwince.h 305 VoWifi
Error 11 error C2059: syntax error : '(' C:\WTL81_9127\Include\atlwince.h 315 VoWifi
my stdafx.h
#pragma once
// Change this value to use different versions
#define WINVER 0x0420
#include <atlbase.h>
#if _ATL_VER == 0x900
#define _SECURE_ATL 1
#endif
#include <atlstr.h>
#define _WTL_NO_CSTRING
(Continue reading)
RSS Feed