DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   Favorites   Watched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to make a virtual print on 98DDK

 
   Reply to topic       DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
singmj
Member


Joined: 15 Jan 2004
Posts: 1

PostPosted: 15/01/04 01:36    Post subject: how to make a virtual print on 98DDK Reply with quote

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));
}
Back to top
View user's profile
Display posts from previous:   
   Reply to topic       DELPHI AREA Forum Index -> Delphi Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group