文件名称:在动态连接库内封装应用程序框架cool
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2008-10-13
- 文件大小:
- 68.25kb
- 下载次数:
- 0次
- 提 供 者:
- 杨*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实现方法: 用MFC的程序向导生成一个常规DLL,在常规DLL内有一派生自CWinApp的实例,再用MFC的程序向导生成一个MFC EXE应用程序,把MFC EXE应用程序中 CAppView,CMainfr a me,CAppDocument的文挡和RES目录下的资源拷贝到常规DLL项目中,添加到项目中,编译生成一DLL,在另外一个WIN32应用程序中,启动一线程,在线程函数中显式装载该DLL,取的该DLL内的当前线程, CWinThread *pThread=GetCurrentThread() pThread->Run() 就可装载启动常规DLL内应用程序框架.-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 fr a mework in the normal DLL file.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 244261在动态连接库内封装应用程序框架cool.zip 列表 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