"DOS" ASCII character codes to Photon

Hi.

I have a photon app for which I would like to display special characters
(such as the degree symbol).

I have entered the Octal code for this “\302\260” in an include file and
correctly displayed the value in a Photon PtText widget.

For my app, the User enters these characters in an ASCII file using
Vedit. I need to read this in and convert from these ASCII codes (which I
used back in the DOS days from the back of an IBM manual) into something I
can display in the Photon PtText widget.

How is this done? Are there any functions to perform the conversion?

Thanks.

Augie

Augie Henriques <augiehenriques@hotmail.com> wrote:

Hi.

I have a photon app for which I would like to display special characters
(such as the degree symbol).

I have entered the Octal code for this “\302\260” in an include file and
correctly displayed the value in a Photon PtText widget.

For my app, the User enters these characters in an ASCII file using
Vedit. I need to read this in and convert from these ASCII codes (which I
used back in the DOS days from the back of an IBM manual) into something I
can display in the Photon PtText widget.

Check out the PxTranslate… functions in the docs.


Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.