X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/906c935a80b10d53cecf57f71ab5f3f4f1d529ec..6186cb7416512f6ebdb6599e4b56a68d827baf0e:/src/msw/dcprint.cpp?ds=inline diff --git a/src/msw/dcprint.cpp b/src/msw/dcprint.cpp index 150232ed19..ec8bc89aa8 100644 --- a/src/msw/dcprint.cpp +++ b/src/msw/dcprint.cpp @@ -118,8 +118,8 @@ wxPrinterDC::wxPrinterDC(const wxString& driver_name, { if ( !driver_name.empty() && !device_name.empty() && !file.empty() ) { - m_hDC = (WXHDC) CreateDC(driver_name.wx_str(), - device_name.wx_str(), + m_hDC = (WXHDC) CreateDC(driver_name.t_str(), + device_name.t_str(), file.fn_str(), NULL); } @@ -186,14 +186,14 @@ bool wxPrinterDCImpl::StartDoc(const wxString& message) { DOCINFO docinfo; docinfo.cbSize = sizeof(DOCINFO); - docinfo.lpszDocName = message.wx_str(); + docinfo.lpszDocName = message.t_str(); wxString filename(m_printData.GetFilename()); if (filename.empty()) docinfo.lpszOutput = NULL; else - docinfo.lpszOutput = filename.wx_str(); + docinfo.lpszOutput = filename.t_str(); docinfo.lpszDatatype = NULL; docinfo.fwType = 0; @@ -335,7 +335,7 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst) HDC hDC = ::CreateDC ( NULL, // no driver name as we use device name - deviceName.wx_str(), + deviceName.t_str(), NULL, // unused static_cast(lockDevMode.Get()) );