登录
首页 » 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 143
下载积分: 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 个回复

  • write C code conversion RISC_SPM into hex code, thus enabling RISC_SPM can use c...
    C++写的 转换RISC_SPM 代码成hex code,从而使得RISC_SPM可以使用,代码及说明均在压缩包内-write C code conversion RISC_SPM into hex code, thus enabling RISC_SPM can use code and explanations were compressed within
    2022-08-05 09:39:47下载
    积分:1
  • 图书管理系统,c++,课程设计,文件操作、
    图书管理系统,c++,课程设计,文件操作、-Library management system, c++, Curriculum design, file operations,
    2022-07-09 22:10:11下载
    积分:1
  • Through the temperature sensor detecting the temperature of the outside world, a...
    通过温度传感器检测外界的温度,然后经放大接入A/D,和键盘设置的温度值进行比较,来调节控制器对加热器进行控制,使温度保持在设定温度附近,并通过LED显示温度值,如果出现温度异常,通过嗡鸣器进行报警。以实现温度设置输入、温度显示、温度异常报警、加热执行器控制等功能-Through the temperature sensor detecting the temperature of the outside world, and then by the enlarged access A/D, and keyboard settings to compare the temperature to adjust the controller to the heater control to maintain the temperature near the set temperature, and temperature LED display value, if there is abnormal temperature, through the alarm device Ong Ming. Input to achieve the set temperature, the temperature showed that temperature anomalies alarm, heating and other functions to implement control
    2022-09-18 11:10:02下载
    积分:1
  • 用 ddraw 编写的一个RPG游戏源码,资源文件太大没有上传。
    用 ddraw 编写的一个RPG游戏源码,资源文件太大没有上传。-Written with an RPG game ddraw source code, resource files do not upload too much.
    2022-03-05 01:32:00下载
    积分:1
  • C#简单的串口通讯源码
    简单的用C#的serial port控件实现的串口通讯的源码例子,可以使用VS2008打开,实现了串口发送数据,同时,接收是通过异步方式实现,通过委托与串口接收到数据事件的绑定,能够自动处理接收的数据。对初学者有所帮助。
    2022-06-13 01:00:20下载
    积分:1
  • 对工作分配进行多次优化,直到找到最优的分配方式。 首先将所有工作交给能力最强的人做,然后找出最低安全值和最高安全值,此时将未分配工作的人的能力值当作安全值参与判...
    对工作分配进行多次优化,直到找到最优的分配方式。 首先将所有工作交给能力最强的人做,然后找出最低安全值和最高安全值,此时将未分配工作的人的能力值当作安全值参与判断,把安全值最低者分配的仓库数减一,并将这个仓库交给安全值最高者看守,然后进入下次优化,在新一次优化过程中把最低安全值和上次优化时的最低安全值作比较,如果这次最低安全值比上次大,则继续进行优化,若系统最低安全值相比上次下降,则说明上次优化后的结果已经是最优,即得结果。-work on a number of distribution optimization, until they found the optimal method of distribution. First of all to the most capable people to do and then find the minimum value and maximum security safety value has been assigned to this work of the human capacity as a safety value in judging the value safety, the lowest value of the distribution by a few warehouses and storage to the value of the highest security guards, and then proceed to the next optimization of the new optimization process a minimum safe value and optimization of the last minimum safety value for comparison, if the value of the last minimum security, will continue to optimize, if the minimum safety systems compared to the previous decline in value, a statement last optimize the result is optimal, that i
    2022-03-18 03:55:34下载
    积分:1
  • This application allows you to monitor all changes done to the any folder on loc...
    This application allows you to monitor all changes done to the any folder on local or network directory. Application supports sub directories. This application requires .Net 2.0 to run. (Vb.Net 05)
    2022-07-14 09:25:13下载
    积分:1
  • H263网络视频 EVC的源代码 希望大家交流讨论,不是我写的...
    H263网络视频 EVC的源代码 希望大家交流讨论,不是我写的-H.263 Video EVC hope that the source code for the exchange of discussion, I did not write
    2023-08-10 14:15:03下载
    积分:1
  • 遥感动态监测PCA主成分分析算法
    主成分分析的源代码,用于遥感影像的主成分分析
    2022-03-09 18:46:28下载
    积分:1
  • 交通灯控制电路 一、 设计任务与要求 1.设计一个十字路口的交通灯控制电路,要求甲车道和乙车道两条交叉道路上的车辆交替 运行,每次通行时间都设为25秒; 2.要...
    交通灯控制电路 一、 设计任务与要求 1.设计一个十字路口的交通灯控制电路,要求甲车道和乙车道两条交叉道路上的车辆交替 运行,每次通行时间都设为25秒; 2.要求黄灯先亮5秒,才能变换运行车道; 3.黄灯亮时,要求每秒钟闪亮一次 。 二、实验预习要求 1.复习数字系统设计基础。 2.复习多路数据选择器、二进制同步计数器的工作原理。 3.根据交通灯控制系统框图,画出完整的电路图。-a control circuit design tasks and requirements 1. Design a crossroads of traffic lights control circuit, and requested a B lane cross-road of two lanes of traffic on the turn of operation, each time prevailing Set 25 seconds; 2. Asked yellow first-five seconds, can transform running lanes; 3. Bright yellow light, flashing a request per second. Two experimental rehearsal requirements 1. Review of digital systems design basis. 2. Review of Multiple Choice of data, binary synchronous counter to the principle. 3. According to the traffic light control system block diagram to depict the integrity of the circuit.
    2022-04-14 23:27:03下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载