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

C / C++ / MFC

 
GeneralRe: ERROR_PATH_NOT_FOUND error Pin
Mark Salsbery7-Feb-08 8:51
Mark Salsbery7-Feb-08 8:51 
GeneralRe: ERROR_PATH_NOT_FOUND error Pin
led mike7-Feb-08 9:40
led mike7-Feb-08 9:40 
GeneralRe: ERROR_PATH_NOT_FOUND error Pin
Larry Mills Sr10-Feb-08 11:16
Larry Mills Sr10-Feb-08 11:16 
GeneralRe: ERROR_PATH_NOT_FOUND error Pin
Mark Salsbery7-Feb-08 7:40
Mark Salsbery7-Feb-08 7:40 
GeneralRe: ERROR_PATH_NOT_FOUND error Pin
Larry Mills Sr7-Feb-08 10:45
Larry Mills Sr7-Feb-08 10:45 
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 
I need to have my printer print fields onto a form. So I need to print at precise locations of the form.

I tried using MM_TEXT mode and cannot get the printer to print in exact location.

I am trying MM_LOMETRIC, here are relevant source

r_omap = pDC->SetMapMode (MM_LOMETRIC);
pDC->SetViewportOrg (0,0);
pDC->SetWindowOrg (0,0);

pDC->SetTextAlign (TA_LEFT | TA_TOP);

r_font.CreateFont (-40, 0, 0, 0, FW_MEDIUM, FALSE, FALSE, 0,
DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Courier New");

when I specify
pDC->TextOut (1200, -140, str, sz);

its moves x wise about 12.4 cm instead of 12
and about 1.9 cm down instead of 1.4

both x and y seem off by about 0.5 cm

What am I missing ?
Henri

I am using Visual C++ 5.0
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 
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 

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.