<p align=left><font face=Arial size=2></font>
Im trying to compile some older code that was compiled without the UNICODE or _UNICODE preprocessor flags. Unfortunately, it was also written without TCHARs so I have a lot of code that looks like this:
<p align=left> <font color="#0000ff" size=2>
<p align=left>
<div class=codeseg>
<div class=codecontent>
<div class=codesniptitle><span style="width:100% Code Block <font color="#0000ff" size=2>
<p align=left>char</font><font size=2> szPath[MAX_PATH];
<p align=left></font><font size=2>GetModuleFileName (Module, szPath, MAX_PATH);</font>
<p align=left>
<p align=left> </font>
<p align=left><font size=2>
I realize the better way to fix this is change the code to use TCHARs but this is old code whos life is about to end and Im just trying to get it compiled to run a couple tests.
<p align=left>
<p align=left>Is there a way to turn off the UNICODE preprocessor flags? Ive been going through the project and solution settings but the only thing I found was a setting to undefine preprocessor definitions and that didnt work.
<p align=left>
<p align=left>Thanks for the help!
<p align=left></font>
View the full article
Im trying to compile some older code that was compiled without the UNICODE or _UNICODE preprocessor flags. Unfortunately, it was also written without TCHARs so I have a lot of code that looks like this:
<p align=left> <font color="#0000ff" size=2>
<p align=left>
<div class=codeseg>
<div class=codecontent>
<div class=codesniptitle><span style="width:100% Code Block <font color="#0000ff" size=2>
<p align=left>char</font><font size=2> szPath[MAX_PATH];
<p align=left></font><font size=2>GetModuleFileName (Module, szPath, MAX_PATH);</font>
<p align=left>
<p align=left> </font>
<p align=left><font size=2>
I realize the better way to fix this is change the code to use TCHARs but this is old code whos life is about to end and Im just trying to get it compiled to run a couple tests.
<p align=left>
<p align=left>Is there a way to turn off the UNICODE preprocessor flags? Ive been going through the project and solution settings but the only thing I found was a setting to undefine preprocessor definitions and that didnt work.
<p align=left>
<p align=left>Thanks for the help!
<p align=left></font>
View the full article