Re: Is there any problems if there are multiple MFC dlls in one pr
"Tom Lee" <Tom.Lee@community.nospam> ha scritto nel messaggio
news:76941132-135A-45AE-BB6D-E8F70AA00093@microsoft.com...
I have to mixed the Unicode and ANSI MFC dlls in one process because our
modules are using MFCU80.dll and some old third-part DLLS are using
MFC.dll
and MFC42.dll:(
I think that, when you mix Unicode and ANSI MFC DLLs, you should pay
attention when passing strings specified by LPCTSTR.
In fact, in the ANSI DLLs, LPCTSTR maps to "const char *", instead in
Unicode DLLs, LPCTSTR maps to "const wchar_t *". So you *may* have some
linker errors, but it depends also on your code organization (moreover, the
CString of MFC42 - i.e. VC6 CString - is less versatile than CString of next
version of Visual C++. In fact, since VC7, you can explicitly request
CStringA [ANSI, or multi-byte] and CStringW [Unicode UTF-16], so you can mix
both; instead, in VC6, the type of CString is just TCHAR, which depends on
UNICODE and _UNICODE preprocessor macro definitions, and cannot be changed
inside a given module).
However, if you have any error, feel free to post here, and we can try to
help.
Giovanni