Topic: OEM<==>ANSI (1 of 2), Read 28 times, 1 File Attachment
Conf: Converting, Translating
From: Ian Binnie
Date: Tuesday, May 04, 2004 09:47 PM

The attached C++ program generates a custom ansi.tbl for Vedit by calling Win32 API functions
OemToCharBuff(), CharToOemBuff for every character code from 128 until 255.
The output file is named ansi_Language.tbl, where Language is the principal language in the locale.

This works with the new Translate_Load(...)"ANSI" option.

 
OEM2ANSI.CPP (2KB)

 


Topic: Re: OEM<==>ANSI (2 of 2), Read 27 times
Conf: Converting, Translating
From: Ted Green
Date: Wednesday, May 05, 2004 12:25 AM

At 09:48 PM 5/4/2004, you wrote:
>The attached C++ program generates a custom ansi.tbl for Vedit by calling Win32 API functions
>OemToCharBuff(), CharToOemBuff for every character code from 128 until 255.
>The output file is named ansi_Language.tbl, where Language is the principal language in the locale.
>
>This works with the new Translate_Load(...)"ANSI" option.

Thank you.

Perhaps we should simply use these API functions within VEDIT instead of using a static table. Yes, I think we should in the next version. Too late for 6.12 though.

Ted.