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

  • 实现杭电acm一道字符串算法
    zju1174 skip letter code实现杭电acm一道字符串算法
    2022-07-16 03:52:30下载
    积分:1
  • This is a simple flow
    这是一个WINCE4.2下的简单流驱动,与硬件无关。弄了很久,才调试成功。主要是学习流驱动的实现过程及动态加载!包括EVC开发的流驱动,EVC的应用调用程序和WORD的说明文档-This is a simple flow-driven, under WINCE4.2, and hardware-independent. Get a long time before the successful commissioning. Mainly for studying flow-driven implementation process and dynamic load! Including the EVC developed flow-driven, EVC application calls the procedures and instructions WORD documents
    2023-01-24 23:50:04下载
    积分:1
  • 一个远程调用框架的事例,是用C++编写的RCF
    一个远程调用框架的事例,是用C++编写的RCF-Example of a remote procedure call framework is the use of C++ written in RCF
    2022-03-12 06:48:47下载
    积分:1
  • A command
    一个命令行的类实现。如果您想处理自己的命令行,可以重复利用,很方便的-A command-line class realize. If you want to deal with its own command line, you can re-use, very convenient
    2022-02-05 18:28:06下载
    积分:1
  • <Visual Basic Win32 API编程>随书代码
    随书代码-lt; Visual Basic Win32 API programming gt; With the code book
    2022-05-22 20:10:11下载
    积分:1
  • This program called (WM_TIMER) ,is designed for time keeping. In this program I...
    这项计划要求( WM_TIMER ) ,是专为时间维持。 在这个项目中我用三( 3 )功能( SetTimer , OnTimer , KillTimer ) ,这些功能都支持该计划的选择-This program called (WM_TIMER) ,is designed for time keeping. In this program I used three (3) functions (SetTimer,OnTimer,KillTimer),these function support the program with option
    2022-02-16 06:45:41下载
    积分:1
  • poj AC代码,具有一定的参考价值,你可以下载来看看,
    poj AC代码,有一定的参考价值,可以下载看看,
    2022-07-12 20:42:15下载
    积分:1
  • Josephus问题的顺序表实现 关于Josephus问题的顺序表实现
    Josephus问题的顺序表实现 关于Josephus问题的顺序表实现-Josephus table in the order of Josephus achieve in the order table to achieve
    2022-07-13 06:52:13下载
    积分:1
  • Standard Regular Expression Searcher Addin For VS.NET 2003
    Standard Regular Expression Searcher Addin For VS.NET 2003
    2022-02-13 10:44:43下载
    积分:1
  • SSD5
    ssd5-exam01的自己作业答案 ,欢迎你的下载,谢谢了-ssd5-exam01 operation of their own answers, you are welcome to download, I would like to thank the
    2023-02-22 11:05:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载