#include "wx/dcprint.h"
#include "math.h"
-#if !USE_SHARED_LIBRARY
+#if wxUSE_PRINTING_ARCHITECTURE
+
IMPLEMENT_CLASS(wxPrinterDC, wxDC)
-#endif
// This form is deprecated
wxPrinterDC::wxPrinterDC(const wxString& driver_name, const wxString& device_name, const wxString& file, bool interactive, int orientation)
{
- LONG lType;
- HAB hab;
+ LONG lType = 0;
+ HAB hab = 0;
DEVOPENSTRUC devOpen = { (char*)device_name.c_str()
,(char*)driver_name.c_str()
,NULL
// Gets an HDC for the specified printer configuration
WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
{
- HDC hDC;
+ HDC hDC = NULLHANDLE;
/*
wxPrintData printData = printDataConst;
printData.ConvertToNative();
return (WXHDC) hDC;
}
+#endif //wxUSE_PRINTING_ARCHITECTURE