This might be an extremely dumb question; I'm new to Visual C++, and am trying to use the simple Spooler API, OpenPrinter, but when I try to compile my source file, it says OpenPrinter is an undeclared identifier. Here's how I'm trying to use it
HANDLE newPrinter = NULL
BOOL op = OpenPrinter(ps09, &newPrinter, NULL)
Now, as far as I'm concerned there should be nothing wrong with that code, but does anyone else know what might be the problem? I'm using Visual C++ 6.0 on Windows XP. Thanks
Carl Daniel [VC++ MVP] - 20 May 2004 18:51 GMT
> This might be an extremely dumb question; I'm new to Visual C++, and
> am trying to use the simple Spooler API, OpenPrinter, but when I try
[quoted text clipped - 7 lines]
> code, but does anyone else know what might be the problem? I'm using
> Visual C++ 6.0 on Windows XP. Thanks!
Did you #include <windows.h>?
-cd