trying to write simple print application



Hi
I am desperated - trying to write simple printing application for
windows ce 6 running on XScale processor.
The problem is that when I add "include "winddi.h"" to my project I am
getting a lot of compilation errors like:
error C2146: syntax error : missing ';' before identifier
'lfDefaultFont'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier
'lfAnsiVarFont'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier
'lfAnsiFixFont'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2146: syntax error : missing ';' before identifier
'BlendFunction'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2065: 'DEVMODEW' : undeclared identifier
error C2065: 'pdm' : undeclared identifier
error C2275: 'LPWSTR' : illegal use of this type as an expression
RMV4I\winnt.h(176) : see declaration of 'LPWSTR'
error C2146: syntax error : missing ')' before identifier
'pwszLogAddress'
warning C4229: anachronism used : modifiers on data are ignored
error C2078: too many initializers
error C2275: 'LPWSTR' : illegal use of this type as an expression
RMV4I\winnt.h(176) : see declaration of 'LPWSTR'
error C2059: syntax error : ')'
error C2061: syntax error : identifier 'DEVMODEW'
error C2061: syntax error : identifier 'TRIVERTEX'
error C2059: syntax error : ','
error C2061: syntax error : identifier 'DEVMODEW'
error C2061: syntax error : identifier 'TRIVERTEX'
error C2146: syntax error : missing ';' before identifier
'DrvEnablePDEV'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2378: 'DEVMODEW' : redefinition; symbol cannot be overloaded
with a typedef
error C2146: syntax error : missing ';' before identifier 'DEVMODE'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C2378: 'DEVMODEW' : redefinition; symbol cannot be overloaded
with a typedef
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int


It seems to me like kind of incompatibility or my guess is wrong?
Please help me I am a newbier in develoing native applications since I
am .net programmer:)

I am looking for printing solution that will wotk with USB printer. I
have tryed a couple of libraries - they work fine with network
printers but not with USB:(. I have included USB printer driver to my
OS image and I have all th settings for printng in registry (according
to MSDN)
Maybe I am missing something ?

Thank you guys for your help
.



Relevant Pages