gz,我也想要!!
[email protected]
谢谢了!!

解决方案 »

  1.   

    DLLHUSK: Dynamically Links the MFC Library
    Click to open or copy the DLLHUSK project files.DLLHUSK dynamically links the Microsoft Foundation Class Library (MFC) to applications and custom dynamic-link libraries (DLLs) sharing the same class library code, thus reducing the total memory required by running multiple applications.Dynamically linking to the class library also offers other possible application architectures in which part of the application is implemented in a custom DLL, and both the application and the custom DLL share the MFC DLL (Mfcxx.dll). A custom DLL that shares framework functionality with an application is called an "MFC extension DLL."  DLLHUSK demonstrates MFC extension DLLs with class exports. C++ classes in the DLLs (Testdll1.dll and Testdll2.dll) are exported using the AFX_EXT_CLASS macro. The first MFC Extension DLL (TESTDLL1) is one in which all C++ class interfaces of the custom DLL are accessed only by the framework, not directly by the application. The custom DLL exports only extern "C" functions to the application. The custom DLL does not need to export the functions of classes derived from framework classes. All calls from the framework to derived classes in the custom DLL are resolved via the C++ virtual function mechanism.