资 源 简 介
实现方法:
用MFC的程序向导生成一个常规DLL,在常规DLL内有一派生自CWinApp的实例,再用MFC的程序向导生成一个MFC
EXE应用程序,把MFC EXE应用程序中
CAppView,CMainFrame,CAppDocument的文挡和RES目录下的资源拷贝到常规DLL项目中,添加到项目中,编译生成一DLL,在另外一个WIN32应用程序中,启动一线程,在线程函数中显式装载该DLL,取的该DLL内的当前线程,
CWinThread *pThread=GetCurrentThread()
pThread->Run()
就可装载启动常规DLL内应用程序框架.-Realize Methods: The MFC AppWizard to generate a conventional DLL, in the conventional DLL there is one derived from CWinApp instance, reuse of the MFC AppWizard to generate a MFCEXE applications, the MFC EXE application CAppView, CMainFrame, CAppDocument block of text RES directory and copy resources to the conventional DLL project, add to the project, the compiler generates a DLL, in another WIN32 application, start a thread in the thread function explicitly loading the DLL, check inside the DLL the current thread, CWinThread* pThread = GetCurrentThread () pThread-
文 件 列 表
SingDocRglDll
AFXTRACE.CPP
CircleAppDoc.cpp
CircleAppDoc.h
CircleAppView.cpp
CircleAppView.h
CJBUTTON.CPP
Cjbutton.h
CJCONTROLBAR.CPP
Cjcontrolbar.h
CJTABCTRLBAR.CPP
Cjtabctrlbar.h
DiameterDlg.cpp
DiameterDlg.h
dll.clw
dll.cpp
dll.def
dll.dsp
dll.dsw
dll.h
dll.rc
dll.stc
Dlltest
Dlltest_link
MainFrm.cpp
MainFrm.h
myMainFrm.cpp
myMainFrm.h
MyResource.h
MyThread.cpp
MyThread.h
ReadMe.txt
res
resource.h
StdAfx.cpp
StdAfx.h