O
oddvark
Hello,
I'm doing a
#define STR_YES Si
Where Si has that special italian accent mark in it. Basically its
extended ascii 236 (the i with the sloping accent).
If I put the #define in the same file and try to print out it out, it
works. Basically i get ascii 236 when my printing algorithm hits the
special 'i'.
However, if I put the (#define STR_YES Si) in another file called
"Italian.h" then include that, when I print it, it doesn't work, and I
get some garbage character.
Why would putting the define in the same file versus in another file
generate different results?
Here is a sample:
SOLUTION 1, WORKS:
================
#define STR_YES Si
drawString(STR_YES)
SOLUTION 2, DOESNT WORK
=======================
#include "spanish.h" // spansh.h defines STR_YES_SI
drawString(STR_YES) // GET GARBAGE!
I'm doing a
#define STR_YES Si
Where Si has that special italian accent mark in it. Basically its
extended ascii 236 (the i with the sloping accent).
If I put the #define in the same file and try to print out it out, it
works. Basically i get ascii 236 when my printing algorithm hits the
special 'i'.
However, if I put the (#define STR_YES Si) in another file called
"Italian.h" then include that, when I print it, it doesn't work, and I
get some garbage character.
Why would putting the define in the same file versus in another file
generate different results?
Here is a sample:
SOLUTION 1, WORKS:
================
#define STR_YES Si
drawString(STR_YES)
SOLUTION 2, DOESNT WORK
=======================
#include "spanish.h" // spansh.h defines STR_YES_SI
drawString(STR_YES) // GET GARBAGE!