Click here to Skip to main content
15,920,801 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionThread + Serial communication? Pin
Sunshine Always25-Sep-06 22:50
Sunshine Always25-Sep-06 22:50 
AnswerRe: Thread + Serial communication? Pin
Roger Stoltz25-Sep-06 23:25
Roger Stoltz25-Sep-06 23:25 
QuestionFont problem Pin
mikobi25-Sep-06 22:36
mikobi25-Sep-06 22:36 
AnswerRe: Font problem Pin
Hamid_RT25-Sep-06 23:24
Hamid_RT25-Sep-06 23:24 
AnswerRe: Font problem Pin
Steve S26-Sep-06 0:01
Steve S26-Sep-06 0:01 
AnswerRe: Font problem Pin
mikobi26-Sep-06 20:40
mikobi26-Sep-06 20:40 
GeneralRe: Font problem Pin
Steve S27-Sep-06 1:40
Steve S27-Sep-06 1:40 
GeneralRe: Font problem Pin
mikobi28-Sep-06 0:30
mikobi28-Sep-06 0:30 
This all my code when I print.
With dot matrix printer I print only the first dc.TextOut but others are not printed.

With LAser or deskjet printer all is printed, no problem here.

What to do ? so to print on dot matrix what I need like:

CFont font;
font.CreateFont(-MulDiv (8, dc.GetDeviceCaps (LOGPIXELSY),72),0,0,0,FW_DONTCARE,FALSE,FALSE,0,ANSI_CHARSET,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH|FF_MODERN,"Courrier");
dc.SetMapMode(MM_TEXT);

CFont* pOldFont = (CFont*) dc.SelectObject(&font);;

dc.GetTextMetrics(&tm);
nHeight = tm.tmHeight + tm.tmExternalLeading ;
hauteur = nHeight; l += 1;

strCommand.Format("|%-50s","Matric." );
dc.TextOut(Info.m_rectDraw.left ,Info.m_rectDraw.top + (l * hauteur) , strCommand);
strCommand.Format("|%-80s","Nom" );
dc.TextOut(Info.m_rectDraw.left + 300 ,Info.m_rectDraw.top + (l * hauteur) , strCommand);
strCommand.Format("|%-50s","Postnom" );
dc.TextOut(Info.m_rectDraw.left + 900 ,Info.m_rectDraw.top + (l * hauteur) , strCommand);
strCommand.Format("|%-50s","Initial" );
dc.TextOut(Info.m_rectDraw.left + 2500 ,Info.m_rectDraw.top + (l * hauteur) , strCommand);
strCommand.Format("|%-50s","Nb.retenu" );
dc.TextOut(Info.m_rectDraw.left + 3000 ,Info.m_rectDraw.top + (l * hauteur) , strCommand);
strCommand.Format("|%-50s","Restant" );
dc.TextOut(Info.m_rectDraw.left + 3500 ,Info.m_rectDraw.top + (l * hauteur) , strCommand);


Urgent
AnswerFont problem Pin
mikobi26-Sep-06 20:57
mikobi26-Sep-06 20:57 
QuestionProcess dependencies Pin
nmx_de25-Sep-06 21:46
nmx_de25-Sep-06 21:46 
AnswerRe: Process dependencies Pin
nutkase25-Sep-06 23:31
nutkase25-Sep-06 23:31 
GeneralRe: Process dependencies Pin
nmx_de25-Sep-06 23:47
nmx_de25-Sep-06 23:47 
GeneralRe: Process dependencies Pin
nutkase26-Sep-06 0:02
nutkase26-Sep-06 0:02 
AnswerRe: Process dependencies Pin
Hamid_RT25-Sep-06 23:39
Hamid_RT25-Sep-06 23:39 
GeneralRe: Process dependencies Pin
Waldermort25-Sep-06 23:52
Waldermort25-Sep-06 23:52 
GeneralRe: Process dependencies Pin
Hamid_RT26-Sep-06 3:34
Hamid_RT26-Sep-06 3:34 
AnswerRe: Process dependencies Pin
nmx_de26-Sep-06 2:38
nmx_de26-Sep-06 2:38 
QuestionSystem menu in child window Pin
Anu_Bala25-Sep-06 21:37
Anu_Bala25-Sep-06 21:37 
Questionwinsock send/recv problem Pin
_tasleem25-Sep-06 21:25
_tasleem25-Sep-06 21:25 
AnswerRe: winsock send/recv problem Pin
Sakthiu25-Sep-06 23:30
Sakthiu25-Sep-06 23:30 
GeneralRe: winsock send/recv problem Pin
_tasleem25-Sep-06 23:50
_tasleem25-Sep-06 23:50 
GeneralRe: winsock send/recv problem Pin
Hamid_RT26-Sep-06 6:57
Hamid_RT26-Sep-06 6:57 
AnswerRe: winsock send/recv problem Pin
nutkase25-Sep-06 23:58
nutkase25-Sep-06 23:58 
GeneralRe: winsock send/recv problem Pin
_tasleem26-Sep-06 21:01
_tasleem26-Sep-06 21:01 
QuestionRecord File Pin
Rahul.RK25-Sep-06 21:21
Rahul.RK25-Sep-06 21:21 

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.