how to make a virtual print on 98DDK

Please discuss general Delphi programming topics here.

how to make a virtual print on 98DDK

Postby singmj » January 15th, 2004, 1:36 am

With the Windows98 DDK's EXP, Virtual Printer.I inserted code in Function
'DevExtTextOut' , make the value of 'lpStr' into file. At the End, No data in
file which lpStr's indicate. Please tell me What's going on and more hope!

The source code

DWORD WINAPI DevExtTextOut(lpdv, x, y, lpCR, lpStr, count, lpFont,
lpDrawMode, lpXform, lpWidths, lpOpaqRect, options)
LPDV lpdv;
short x;
short y;
LPRECT lpCR;
LPSTR lpStr;
int count;
LPFONTINFO lpFont;
LPDRAWMODE lpDrawMode;
LPTEXTXFORM lpXform;
LPSHORT lpWidths;
LPRECT lpOpaqRect;
WORD options;
{
LPEXTPDEV lpXPDV;
lpXPDV = ((LPEXTPDEV)lpdv->lpMd); //Get the hanle of file in lpdv

_lwrite(lpXPDV->hDIBFile, lpStr, count); //Write chars in lpStr to File

return(UniExtTextOut(lpdv, x, y, lpCR, lpStr, count, lpFont,
lpDrawMode, lpXform, lpWidths, lpOpaqRect, options));
}
singmj
Member
Member
 
Posts: 1
Joined: January 15th, 2004, 1:34 am

Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 18 guests

cron