Set font in WinCE
-
How can I set font to a LOGFONT in WinCE ? I'm using: LOGFONT lf; memset(&lf,0,sizeof(LOGFONT)); lf.lfCharSet=VIETNAMESE_CHARSET; lf.lfStrikeOut=TRUE; lf.lfHeight=10; lf.lfFaceName=_T("Times New Roman"); /* ERROR HERE !!!!!!!!!!!! (in Win2k, I used strcpy successfully*/ CFont font; font.CreateFontIndirect(&lf); pDC->SelectObject(&font); Help me ! ======================= Nothing is perfect
-
How can I set font to a LOGFONT in WinCE ? I'm using: LOGFONT lf; memset(&lf,0,sizeof(LOGFONT)); lf.lfCharSet=VIETNAMESE_CHARSET; lf.lfStrikeOut=TRUE; lf.lfHeight=10; lf.lfFaceName=_T("Times New Roman"); /* ERROR HERE !!!!!!!!!!!! (in Win2k, I used strcpy successfully*/ CFont font; font.CreateFontIndirect(&lf); pDC->SelectObject(&font); Help me ! ======================= Nothing is perfect
dlhson2 wrote: in Win2k, I used strcpy successfully Here you are in the UNICODE realm! Use wcscpy instead.