You are right I should described better the problem. I've been bad.Quote:
Originally Posted by Mick
And... since compiles fine for you... perhaps you can enlighten us... :D
Printable View
You are right I should described better the problem. I've been bad.Quote:
Originally Posted by Mick
And... since compiles fine for you... perhaps you can enlighten us... :D
Nah :) gonna help souldog out more up my alley than this GUI thingamabob...stuffins..Quote:
Originally Posted by Doctor Luz
here is something for you though (these should fix your compiler errors) we can fire the lib to you if you need it.
But if you really want me to look at this...well then twist my arm please :)Code:#define ST_DEFAULT 0
typedef struct _settextex
{
DWORD flags; // Flags (see the ST_XXX defines)
UINT codepage; // Code page for translation (CP_ACP for sys default,
// 1200 for Unicode, -1 for control default)
} SETTEXTEX;
#define EM_SETTEXTEX (WM_USER + 97)
I can't make the font thing work. All it does is change the look of the letters but I still see the same charachters. Here is how I am creating and setting the font:
in the constructor for the dialog I do this:
fUnicodeFont.CreateFont(0, 0, 0, 0, 0, false, false, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, PROOF_QUALITY, FF_DONTCARE, _T("Arial"));
and in OnInitDialog I do this:
m_cStatic.SetFont(&fUnicodeFont);
Am I doing something wrong or is this not the real problem?
There is no need to add "FFFE" to the begining of the text for the controls.
FFFE is a header for unicode text files in order to allow to the applications to recognise that the file is in unicode. But you don't need to put it in the text of a control.
I was grasping at straws.Quote:
Originally Posted by Doctor Luz
And really it is not "Arial" it is "Arial unicode" they are different fonts, but I don't think you will need it unless you are trying to display japanese or something like that.
Can you show me how is the garbage you are obtaining, can you provide an example of which is the unicode text you want to display and what are the results?
I've attached a file that I saved out using some unicode charachters. If you open the file in the program it should display correctly in the rich edit view. If you hit the last button on the toolbar it will bring up a dialog with a bunch of controls on it. These controls have been loaded with garbage.