- wxChar* driverName = (wxChar*) NULL;
-
- wxString devNameStr = printDataConst.GetPrinterName();
- wxChar* portName = (wxChar*) NULL; // Obsolete in WIN32
-
- const wxChar* deviceName;
- if ( !devNameStr )
- deviceName = (wxChar*) NULL;
- else
- deviceName = devNameStr.c_str();
-
- LPDEVMODE lpDevMode = (LPDEVMODE) NULL;
-
- HGLOBAL hDevMode = (HGLOBAL)(DWORD) data->GetDevMode();
-
- if ( hDevMode )
- lpDevMode = (DEVMODE*) GlobalLock(hDevMode);
-
- if ( !devNameStr )