martin@ektools.UUCP (Brian Martin) (01/13/89)
I am in despirate need of some assistance. I am using Turbo C 2.0 in EGAHI mode (640x350). I am writing a software package for Foreign Language Translation. The problem I have just encountered is that I cannot access the extended ASCII characters (128-256). Borland tells me that Turbo C does not support these characters in graphics mode. For Example: I want to print ASCII 132 I enter the value into an unsigned char. When I use outtextxy(1,1,ch) is get gargage. I can varify that the 132 is actually in the variable ch. I am hoping someone else out there has already found a solution to this problem. Thanks in advance ---------- Brian A. Martin "How did that bug get there!" rochester!kodak!ektools!martin
teittinen@cc.helsinki.fi (01/16/89)
In article <1691@ektools.UUCP>, martin@ektools.UUCP (Brian Martin) writes: > > I am using Turbo C 2.0 in EGAHI mode (640x350). > > The problem I have just encountered is that I cannot access the extended > ASCII characters (128-256). > > Borland tells me that Turbo C does not support these characters in > graphics mode. > > For Example: > I want to print ASCII 132 > I enter the value into an unsigned char. > When I use outtextxy(1,1,ch) is get gargage. > I can varify that the 132 is actually in the variable ch. > You can't use outtext() or outtextxy() to write ASCII characters 128-255. But at least in TurboC 1.5 it was possible to write text to graphics screen using printf(). It is limited to one character size, the character positions are fixed 8 pixels wide and you can use only display page 0, but if these don't matter, then try it. If you need to use other display pages, you can store the characters in memory using getimage() and then writing your own output function to use these characters in memory. -----------------------------------+------------------------------------------- EARN: teittinen@finuh I "Studying is the only way to do nothing Internet: teittinen@cc.helsinki.fi I without anyone complaining about it." -----------------------------------+------------------------------------------- Marko Teittinen, student of computer science -------------------------------------------------------------------------------