Re: C++ Version 6 app using c++ version 8 dll
Ajay Kalra wrote:
It doesn't matter if the DLL uses MFC internally, as long as it has a C
interface using simple types (as the OP's DLL seems to have). As you
indicate, I think the real problem here is Unicode mismatch.
You can easily have problems by loading multiple versions of MFC. All
the static variables in MFC are now hosed. AfxGetMainWnd will return
null in one of the modules. State management within MFC will
essentially be broken. We learnt this when our AddIn writers were
using version of MFC(MBCS) and we had migrated to UNICODE. But the
problem was not related to MBCS/UNICODE but to the fact that two
instances of MFC are in the same process space and only one is
initialized properly. I have no idea of OP design but IMO this is bad
idea and can/will lead to problems in future if not now.
Hi Ajay:
I was not thinking of having a whole MFC app inside the DLL. But maybe
using CString, CRecordSet, show a modal dialog, that kind of thing. Do
you think this creates a problem?
--
David Wilkinson
Visual C++ MVP