Click to See Complete Forum and Search --> : mix UNICODE & ANSI modules???


April 4th, 1999, 12:26 AM
Can you mix UNICODE and ANSI modules in an app? I basically just have one module I want to use unicode Win32 functions in. How do you compile it? Just define UNICODE in the module I want?

TIA

April 6th, 1999, 04:10 PM
There shouldn't really be any problem with mixing Unicode and ASCII source within the same modules.

You may experience problems getting it all to link correctly, as some of the libraries you link to may have a Unicode and an ASCII version (i.e. MFC) This could be addressed through putting specific link options on individual cpp files but that is a lot of hassle.