Re: Project chenged from MBCS to Unicode gives Linker error
Norbert Unterberg wrote:
Giovanni Dicanio schrieb:
"Matrixinline" <anup.kataria@gmail.com> ha scritto nel messaggio
news:1192623805.668023.221200@k35g2000prh.googlegroups.com...
I have a Solution which contents 3 projects & given below are the
names & their character set encoding type
1. Utility - > MBCS
2. Calculations -> MBCS
3. User Interface -> Unicode ( Earlier It used to be MBCS)
& now project gets compiled but it gives me Linker errors 1500 I am
loosing it..:))))
Can you please let me know Do I need to convert all the Projects to
use Unicode character set ?
You can mix Unicode and MBCS modules, if you keep the interface
between them *clear*.
[...]
So, on the interface, you must explicit qualify the string type, e.g.
using CStringA or CStringW, or wchar_t, or char, etc. ...
Converting the interface is usually a much bigger job than converting
the complete project to UNICODE. You should have a very very good reason
to mix MBCS and UNICODE in the same project. I can not think of one.
Norbert:
I agree. But mixing UTF-8 and UTF-16 can be a valid strategy, and
involves much the same issues.
--
David Wilkinson
Visual C++ MVP