Introduction - If you have any usage issues, please Google them yourself
method: a normal DLL file has been created with the program wizard and there is an instance generated from CWinApp in the DLL file.Create another MFC EXE appliaction and copy CAppView,CMainFram,CAppDocument and the resources in RES directory to the normal DLL and add to the projec and compile and generate a DLL. In a Win32 application, start a thread which loads the DLL with codes, get the running thread, ie.CWinThread*pThread=GetCurrentThread(), then,pThread->Run() executes the loading and start the execution of the application framework in the normal DLL file.
Packet : 244261在动态连接库内封装应用程序框架cool.zip filelist
SingDocRglDll/
SingDocRglDll/AFXTRACE.CPP
SingDocRglDll/CircleAppDoc.cpp
SingDocRglDll/CircleAppDoc.h
SingDocRglDll/CircleAppView.cpp
SingDocRglDll/CircleAppView.h
SingDocRglDll/CJBUTTON.CPP
SingDocRglDll/Cjbutton.h
SingDocRglDll/CJCONTROLBAR.CPP
SingDocRglDll/Cjcontrolbar.h
SingDocRglDll/CJTABCTRLBAR.CPP
SingDocRglDll/Cjtabctrlbar.h
SingDocRglDll/DiameterDlg.cpp
SingDocRglDll/DiameterDlg.h
SingDocRglDll/dll.clw
SingDocRglDll/dll.cpp
SingDocRglDll/dll.def
SingDocRglDll/dll.dsp
SingDocRglDll/dll.dsw
SingDocRglDll/dll.h
SingDocRglDll/dll.rc
SingDocRglDll/dll.stc
SingDocRglDll/Dlltest/
SingDocRglDll/Dlltest/Dlltest.cpp
SingDocRglDll/Dlltest/Dlltest.dsp
SingDocRglDll/Dlltest/Dlltest.plg
SingDocRglDll/Dlltest/Dlltest.stc
SingDocRglDll/Dlltest/ReadMe.txt
SingDocRglDll/Dlltest/StdAfx.cpp
SingDocRglDll/Dlltest/StdAfx.h
SingDocRglDll/Dlltest_link/
SingDocRglDll/Dlltest_link/Dlltest_link.cpp
SingDocRglDll/Dlltest_link/Dlltest_link.dsp
SingDocRglDll/Dlltest_link/Dlltest_link.plg
SingDocRglDll/Dlltest_link/Dlltest_link.stc
SingDocRglDll/Dlltest_link/ReadMe.txt
SingDocRglDll/Dlltest_link/StdAfx.cpp
SingDocRglDll/Dlltest_link/StdAfx.h
SingDocRglDll/MainFrm.cpp
SingDocRglDll/MainFrm.h
SingDocRglDll/myMainFrm.cpp
SingDocRglDll/myMainFrm.h
SingDocRglDll/MyResource.h
SingDocRglDll/MyThread.cpp
SingDocRglDll/MyThread.h
SingDocRglDll/ReadMe.txt
SingDocRglDll/res/
SingDocRglDll/resource.h
SingDocRglDll/res/CircleApp.ico
SingDocRglDll/res/CircleApp.rc2
SingDocRglDll/res/CircleAppDoc.ico
SingDocRglDll/res/dll.rc2
SingDocRglDll/res/imagelist.bmp
SingDocRglDll/res/Thumbs.db
SingDocRglDll/res/Toolbar.bmp
SingDocRglDll/StdAfx.cpp
SingDocRglDll/StdAfx.h