You're being vague. In your previous
post, you talked about windows 98 or DOS, and now its DOS only.
I wonder, do you really mean DOS, or do you mean the DOS-box window you can get after you've started windows 98?
You still haven't said which compiler you're using.
Everything in DOS is a hack to get around some aspect of its deficiencies.
- like 640K of memory, so you use EMS or XMS or protected mode if you want more.
- the 16 bit segmented architecture limits the size of any single object to 64K
- like only 8 bits characters, so you have to fiddle with code pages to extend the range
- like no multitasking, so you're stuck to running one program at once. TSR's are one way of hacking multi-tasking
- no standardised GUI, so you have to roll your own
- little or no inherent networking capability
- no standardised access to things like printers and other common devices.
My guess would be you need to store each character as two bytes
- one byte to store the character itself
- one byte to store an identifier for the DOS code page which can represent that character.
I've no idea how you go about printing characters from multiple code pages, since I know nothing about code pages or code page flipping.
--