Windows DDK Print Sample Code
Posted on 2003-03-28
I must be doing something stupid or the tool (VC++ 6.0) I am using may not be the right one..
I need to build a "virtual printer driver". I am quite new on this area of developing, and many recommanded I'd better study the DDK print sample source code first and read some DDK documentation. I found the DDK documentation is not helping me understanding much on the subject.. so I tried the sample source code ( /genprint and /oemdll )
I am using Visual C++ 6.0, which I don't use everyday.
I thought I needed to create a project, so I chose Win32 DLL project with "empty DLL project" option. Next, I added the source files into the project, including the DDK and SDK paths in "Options".
When I tried to build - just for the heck of it - , what I got is a bunch of errors:
- 'struct' type redefinition
- 'try' & 'except': undeclared identifier
and even syntax errors...
The html files (about how to build) in the same directory are useless.
Could you be kindly enough to explain or give some instructions about how to build those sample source code from DDK print with VC++ 6.0??
Confused and frustrated