2007-10-23 10:12 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/contrib/win32/tprinter.c
    * casting
This commit is contained in:
Przemyslaw Czerpak
2007-10-23 08:12:57 +00:00
parent 1f3acc4ec7
commit 2bc540f378
2 changed files with 6 additions and 2 deletions

View File

@@ -8,6 +8,10 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2007-10-23 10:12 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/win32/tprinter.c
* casting
2007-10-23 04:03 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwince.h
* harbour/source/common/hbwince.c

View File

@@ -331,11 +331,11 @@ LONG hb_PrintFileRaw( UCHAR * cPrinterName, UCHAR * cFileName, UCHAR * cDocName
HANDLE hPrinter, hFile;
DOC_INFO_1 DocInfo;
DWORD nRead, nWritten, Result;
LPTSTR lpPrinterName = HB_TCHAR_CONVTO( cPrinterName );
LPTSTR lpPrinterName = HB_TCHAR_CONVTO( ( char * ) cPrinterName );
if( OpenPrinter( lpPrinterName, &hPrinter, NULL ) != 0 )
{
LPTSTR lpDocName = HB_TCHAR_CONVTO( cDocName );
LPTSTR lpDocName = HB_TCHAR_CONVTO( ( char * ) cDocName );
DocInfo.pDocName = lpDocName;
DocInfo.pOutputFile = NULL;
DocInfo.pDatatype = TEXT( "RAW" );