Re: How to use IBM extended ASCII characters in VB6?



Matt P. wrote:
Hello all,

Can anyone tell me if there is a way to display the extended ASCII
symbols in VB6? I am referring to the happy face, the heart, spade,
single and double lines for drawing borders, etc... So far, I have
only been able to do something like this:

For i = 1 to 255
Print chr(i)
Next i

This yields all the numbers and letters, plus some symbols. But there
must be some way to get the IBM extended ASCII. I have seen Microsoft
use the single and double-line borders in their apps before...

Any suggestions?

Matt

It's mainly a matter of what font you use for display. Choose a Terminal font or any other one that supports that character set and you should see what you expect.

It's been a while, but I believe this is also known as the "OEM" character set, at least in Western encodings, so you might investigate AnsiToOEMBuffW and similar APIs, to get Unicode codepoints that correspond to the original IBM Extended charset, then use any full Unicode font.

--

Jim Mack
MicroDexterity Inc
www.microdexterity.com
.



Relevant Pages

  • Re: Wall of RAM
    ... >> I should be able to display a NICE terminal font on the display, ... > I'm picturing a '70s scifi where they had an extra large green CRT, ...
    (sci.electronics.basics)
  • Re: Wall of RAM
    ... > I should be able to display a NICE terminal font on the display, ... > - 22 characters per row. ... I'm picturing a '70s scifi where they had an extra large green CRT, ...
    (sci.electronics.basics)
  • Re: Wall of RAM
    ... >> logjam wrote: ... >>> I should be able to display a NICE terminal font on the display, ... I just checked my KDE screensavers, ...
    (sci.electronics.basics)
  • How to use IBM extended ASCII characters in VB6?
    ... Can anyone tell me if there is a way to display the extended ASCII ... I am referring to the happy face, the heart, spade, ... single and double lines for drawing borders, ...
    (comp.lang.basic.visual.misc)