xbpMle and ANSI

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
jdsoft
Posts: 113
Joined: Thu Jan 28, 2010 1:13 pm
Location: Overberg
Contact:

xbpMle and ANSI

#1 Post by jdsoft »

Hello,
I try to display ANSI text in a xbpMle.
Unfortunaly characters are displayed incorrect.

SET CHARSET TO ANSI

Below the text and the Hex presentation of the data.

T™L MF120 (54D64C204D46313230)
Notice the second character #D6 (ASCII 214)
This shoud be Ö, but shows "TM" in superscript.
What is my mistake?
Regards,
Jack Duijf

User avatar
Auge_Ohr
Posts: 1406
Joined: Wed Feb 24, 2010 3:44 pm

Re: xbpMle and ANSI

#2 Post by Auge_Ohr »

have try ..\SOURCE\samples\basics\DRAGDROP\DROP.EXE with TXT Files create by Notepad and can't confirm :naughty:

only € Sign seem wrong when using

Code: Select all

   oMLE:SetFontCompoundName( "10.Courier" )
MLE_ANSI.jpg
MLE_ANSI.jpg (244.52 KiB) Viewed 8031 times
greetings by OHR
Jimmy

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: xbpMle and ANSI

#3 Post by rdonnay »

I entered the following into the command window in XDOT.EXE:

Code: Select all

SET CHARSET TO ANSI

c := HexToStr('54D64C204D46313230')

@ 0,0 dcmultiline c size 300,300 pixel font '12.Arial'

dcread gui fit
Below is the result:
Capture.JPG
Capture.JPG (15.86 KiB) Viewed 8029 times
The eXpress train is coming - and it has more cars.

User avatar
jdsoft
Posts: 113
Joined: Thu Jan 28, 2010 1:13 pm
Location: Overberg
Contact:

Re: xbpMle and ANSI

#4 Post by jdsoft »

Hello Roger, Jimmy,

Thank you for the help.
I also made a simple app with just a DCMULTILINE. That worked as expected.

Eventualy, I managed to locate the problem.
I turned out, i called an obsolete ConvToAnsiCp() somewhere deep in my logging routine.
And the string was already Ansi. :whistle: :whistle:
Regards,
Jack Duijf

Post Reply