Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
A
Somewhere in the belly of the student edition of Visual C++ there is something like a header file that redefines all of the functions that involve text to the Unicode versions, like #define TextOut TextOutW. I suppose it is part of the plan to get Unicode versions used universally.

When I reuse code I wrote 20 years ago, I have to convert all of these function,structures, etc., to the A versions, eg,TextOutA, It is more of a hassle than you would think for an old, really old, programmer like me.
Posted
Updated 8-Mar-14 7:57am
v2

1 solution

Take a look in the project properties dialog - under "Configuration Properties" and "General" there is an option for "Character Set". When that is set to "Use Unicode Character Set" the preprocessor defines UNICODE and _UNICODE are set, which is why you get the *W version of the function. Without it set you should get the ANSI versions.
 
Share this answer
 
Comments
Sir Roland 8-Mar-14 15:42pm    
Thanks Graham. This answer was exactly what I needed. I tried to give it 5 stars. I thought I should mark every star, but the application would accept no changes after I marked the leftmost one.
SoMad 8-Mar-14 16:54pm    
Refresh the page and re-vote. If you want to give 5 stars, click on the right-most only.

Soren Madsen
CPallini 8-Mar-14 16:43pm    
My 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900