Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ERROR_PATH_NOT_FOUND error Pin
Mark Salsbery8-Feb-08 6:38
Mark Salsbery8-Feb-08 6:38 
GeneralRe: ERROR_PATH_NOT_FOUND error Pin
Stephen Hewitt7-Feb-08 12:34
Stephen Hewitt7-Feb-08 12:34 
QuestionPrinting to a printer onto a form Pin
Henri7-Feb-08 3:07
Henri7-Feb-08 3:07 
GeneralRe: Printing to a printer onto a form Pin
Matthew Faithfull7-Feb-08 3:26
Matthew Faithfull7-Feb-08 3:26 
GeneralRe: Printing to a printer onto a form Pin
Mark Salsbery7-Feb-08 5:54
Mark Salsbery7-Feb-08 5:54 
QuestionRe: Printing to a printer onto a form Pin
Henri7-Feb-08 8:17
Henri7-Feb-08 8:17 
GeneralRe: Printing to a printer onto a form Pin
Mark Salsbery7-Feb-08 8:49
Mark Salsbery7-Feb-08 8:49 
QuestionRe: Printing to a printer onto a form Pin
Henri10-Feb-08 3:20
Henri10-Feb-08 3:20 
Hi Mark,

First thanks for your help, truly appreciated.

Here's the bottom line I have tried practically all permutations
of mapping modes ... with latest one as shown. Here is the one consistancy, despite the fact that, pDC->GetDeviceCaps (PHYSICALOFFSETX);
pDC->GetDeviceCaps (PHYSICALOFFSETY); are the same (happens to be 100 for both) location 0,0 offset's horizontally 1/8 of inch and vertically 1/4
of an inch. The same happens for any point. Any clues as to why I keep getting this discranpency ?

r_xmargin = pDC->GetDeviceCaps (PHYSICALOFFSETX);
r_ymargin = pDC->GetDeviceCaps (PHYSICALOFFSETY);

pDC->SetMapMode(MM_ISOTROPIC);
pDC->SetWindowOrg(0, 0);
pDC->SetWindowExt(600, 600); // logical window is 600 dpi
pDC->SetViewportOrg(0, 0);

// GetDeviceCaps(LOGPIXELSX)and Y are 600
// Device viewport is dpi of actual output device.
pDC->SetViewportExt(pDC->GetDeviceCaps(LOGPIXELSX),
pDC->GetDeviceCaps(LOGPIXELSY));

// r_xmargin and r_ymargin happen to both be 100
pDC->SetTextAlign (TA_LEFT | TA_TOP);
pDC->TextOut (0, 0, "x", 1);
pDC->TextOut (r_xmargin, 100, "x", 1);
pDC->TextOut (r_xmargin/2, 200, "x", 1);
pDC-?TextOut (r_xmargin + 50, 300, "x", 1);

Henri
Thanks again
PS. Feel free to email me at paley007@msn.com
GeneralRe: Printing to a printer onto a form Pin
Mark Salsbery10-Feb-08 9:10
Mark Salsbery10-Feb-08 9:10 
GeneralRe: Printing to a printer onto a form Pin
bob169727-Feb-08 7:05
bob169727-Feb-08 7:05 
GeneralSizing my dialog Pin
Sabry19057-Feb-08 1:02
Sabry19057-Feb-08 1:02 
QuestionRe: Sizing my dialog Pin
CPallini7-Feb-08 1:40
mveCPallini7-Feb-08 1:40 
GeneralRe: Sizing my dialog Pin
Iain Clarke, Warrior Programmer7-Feb-08 2:17
Iain Clarke, Warrior Programmer7-Feb-08 2:17 
GeneralRe: Sizing my dialog Pin
CPallini7-Feb-08 8:07
mveCPallini7-Feb-08 8:07 
GeneralRe: Sizing my dialog Pin
Schehaider_Aymen11-Apr-08 23:19
Schehaider_Aymen11-Apr-08 23:19 
QuestionRe: Sizing my dialog Pin
David Crow7-Feb-08 2:24
David Crow7-Feb-08 2:24 
GeneralRe: Sizing my dialog Pin
Hamid_RT10-Feb-08 21:45
Hamid_RT10-Feb-08 21:45 
GeneralPlaying audio file within a windows service Pin
MarcoNedwig7-Feb-08 0:23
MarcoNedwig7-Feb-08 0:23 
GeneralRe: Playing audio file within a windows service Pin
Iain Clarke, Warrior Programmer7-Feb-08 0:36
Iain Clarke, Warrior Programmer7-Feb-08 0:36 
GeneralRe: Playing audio file within a windows service Pin
David Crow7-Feb-08 2:25
David Crow7-Feb-08 2:25 
GeneralRe: Playing audio file within a windows service Pin
MarcoNedwig7-Feb-08 3:06
MarcoNedwig7-Feb-08 3:06 
Questionwhat is the standard way to give file name in FtpOpenFile() [modified] Pin
vptech197-Feb-08 0:18
vptech197-Feb-08 0:18 
QuestionRe: what is the standard way to give file name in FtpOpenFile() Pin
David Crow7-Feb-08 2:28
David Crow7-Feb-08 2:28 
General[Message Deleted] Pin
vptech197-Feb-08 3:25
vptech197-Feb-08 3:25 
QuestionRe: what is the standard way to give file name in FtpOpenFile() Pin
David Crow7-Feb-08 3:33
David Crow7-Feb-08 3:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.