المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : compile error on this open printer statement



C++ Programming
08-11-2009, 10:11 PM
HDC hdcPrinter;

OpenPrinter(pn, &hdcPrinter, NULL);

I get a compile error on arg 2 &hdcprinter which says invalid conversion from HDC to Void I am using the compiler Dev-C++

What is wrong. All examples have seen show that this should work,