Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a file say polish file in unicode based on the characeter set if user selects japanase this strings should change in japanase . its work fine in ansi ... iam using following code :

VB
if ( !lpszFacename || !lpszFacename[0] )
        lpszFacename = _T("Arial");

//based on the language 
  charcter set 

    Font.DeleteObject();

    return Font.CreateFont(nHeight, nWidth, 0, 0, nWeight, FALSE, FALSE, 0,
                                  byCharSet, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
                                  PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE | TMPF_TRUETYPE,
                                  font name );



and invalidate

its not converting please let me know..any help
Posted
Comments
Richard MacCutchan 1-May-15 13:05pm    
What is the value of byCharSet?
[no name] 4-May-15 0:11am    
charcter set -- 932 for japanase like that
[no name] 4-May-15 0:11am    
sry define character set is there -128 for japnase

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900