I have a DLL (A.dll) that uses ATL stuff, and can't have MFC in it. There is some stuff it needs that is MFC though, so I made a MFC regular DLL, called B.dll and it gets automatically loaded at runtime by A.dll (via an import library).
The part of B.dll that A needs is a class (foo) defined in B.dll, and the class has some stuff in it that uses MFC. Am i allowed to create a foo object in A.dll? Does B need to be an extension DLL instead?
The Regular DLL page says:
All memory allocations within a regular DLL should stay within the DLL; the DLL should not pass to or receive from the calling executable any of the following:
Pointers to MFC objects
Pointers to memory allocated by MFC
but the extension DLL page says
The client executable must be an MFC application compiled with _AFXDLL defined., and A.dll can't be an MFC app.
Is it a problem to use a regular DLL in this case?
Thanks,
Bryan