登录
首页 » Windows开发 » 实现方法: 用MFC的程序向导生成一个常规DLL,在常规DLL内有一派生自CWinApp的实例,再用MFC的程序向导生成一个MFC EXE应用程序,把MFC E...

实现方法: 用MFC的程序向导生成一个常规DLL,在常规DLL内有一派生自CWinApp的实例,再用MFC的程序向导生成一个MFC EXE应用程序,把MFC E...

于 2022-07-13 发布 文件大小:68.25 kB
0 219
下载积分: 2 下载次数: 1

代码说明:

实现方法: 用MFC的程序向导生成一个常规DLL,在常规DLL内有一派生自CWinApp的实例,再用MFC的程序向导生成一个MFC EXE应用程序,把MFC EXE应用程序中 CAppView,CMainFrame,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 framework in the normal DLL file.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 课程设计我靠 只能说地方始晕 太少了
    课程设计我靠 只能说地方开始晕 太少了-wobuhuiwoyunzenm youxian xiaone ?
    2022-03-24 02:44:59下载
    积分:1
  • 初学编程写的一个简易整数计算器,希望大家喜欢
    初学编程写的一个简易整数计算器,希望大家喜欢-Novice programmer wrote a simple integer calculator, I hope everyone likes
    2022-04-09 09:43:03下载
    积分:1
  • 登录界面,验证密码和用户名,然后进入主界面,否则出错,退出....
    登录界面,验证密码和用户名,然后进入主界面,否则出错,退出.-Login screen, verify your password and user name, and then enter the main interface, or, exit.
    2022-02-05 11:58:52下载
    积分:1
  • 间的使用
    利用进程间通讯的方法,获取msn聊天内容的原代码-The use of inter-process communication methods, to obtain the contents of the msn
    2022-02-04 09:48:00下载
    积分:1
  • 远程处理示例
    这是一个简单的远程处理,用c#。服务器和客户端,操作简单。使用对象引用的服务器对象和客户机之间的通信是远程的心脏。他们远程访问体系结构,但是,为程序员提供一个更简单的过程。如果您配置客户端正确,你只需要创建远程对象,使用新的一个新实例(或从您的托管编程语言的实例创建函数)。您的客户端收到的引用服务器对象,然后你就可以调用它的方法,就好像物体在你的过程,而不是一个单独的计算机上运行。
    2022-05-22 18:15:48下载
    积分:1
  • 操作MMS,添加控制服务器的源代码,很有用的
    操作MMS,添加控制服务器的源代码,很有用的-Operation of MMS, add control of the server source code, very useful
    2022-03-01 20:48:04下载
    积分:1
  • 视频会议系统界面
    UI 的网络会议,以满足人们是急于利用 IP 会议系统,使用自行设计的 UI。
    2023-05-09 09:45:03下载
    积分:1
  • 对话框跟随移动
    对话框跟随移动,能够跟随鼠标移动的对话框,能够记录鼠标移动坐标,希望能有一定的用处
    2022-03-14 18:04:00下载
    积分:1
  • 多重处理的实现。MPI。
    Multiprocessing realisation. MPI. To all processes to generate number and to find a maximum. (RUS) +Russian comments-Multiprocessing realisation. MPI. To all processes to generate number and to find a maximum. (RUS)+Russian comments
    2022-04-30 21:01:55下载
    积分:1
  • week flight from chee teacher gamma radiation detector Monitoring Program (compi...
    从周航慈老师的伽马辐射检测仪监控程序(汇编)改为c的程序-week flight from chee teacher gamma radiation detector Monitoring Program (compilation) to the procedure c
    2023-07-18 09:40:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载