re: Error in atlwince.h
"jdx797" <jdx797-/[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
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
#include <atlapp.h>
extern CAppModule _Module;
#include <atlwin.h>
#include <tpcshell.h>
#include <aygshell.h>
#pragma comment(lib, "aygshell.lib")
#include <altcecrt.h>
// TODO: reference additional headers your program requires here
#include <winbase.h>
#include <streams.h>
//#include <dmodshow.h>
#include <dmoreg.h>
//#include <wmcodecids.h>
#include <objbase.h>
//#include "struct.h"
#include "CPropertyBag.h"
#include "CamServer.h" //my main header file for directshow engine
Please advise me thanks, any help would be appreciated!
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wtl/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/wtl/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/