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

  • Masm32 prepared with the drive control procedures, background operation, the dri...
    用Masm32编写的光驱控制程序,可以后台运行,控制光驱的进出,关机等 -Masm32 prepared with the drive control procedures, background operation, the drive to control access shutdown
    2023-06-16 07:05:03下载
    积分:1
  • 简单的播放器小例子,用Visual C++编程
    简单的播放器小例子,用Visual C++编程-Simple example of a small player, with Visual C++ programming
    2023-08-31 09:05:04下载
    积分:1
  • labview 气球提示
    此示例演示如何使用.NET 构造函数来访问 Windows 窗体功能在 LabVIEW 中。 此示例使用.NET 构造函数来访问 windows.NET 函数以显示弹出气球 在右下角的任务栏。 这是自动更新的应用程序在 LabVIEW,或者用户不应该由应用程序被打扰时很有用 安装/升级状态窗口,在桌面上,或在任务条形图。
    2022-07-19 09:31:31下载
    积分:1
  • Assembly AVR to practice I/O Programming
    Assembly AVR to practice I/O Programming
    2022-01-31 00:08:10下载
    积分:1
  • 一个时钟显示的程序,有时针、分针、秒针的走时显示
    一个时钟显示的程序,有时针、分针、秒针的走时显示-a clock showed procedures and hand of a clock, watches, at the hands of the show away
    2022-08-13 23:21:40下载
    积分:1
  • 缩略图查看器
    这个程序是浏览是简单易用,开源浏览器的图片的缩略图 viewerSimple。它小巧玲珑,快速的浏览器,生成缩略图的精致美丽,能够浏览各种常见的图像格式。它被仿照 ACDSee 和喜欢使用,如能挂。然而,还有一个区别: 在 ACDSee,访问该缩略图,想要看大地图,使用视图命令来切换到另一个接口,有时并不足以推动这个简单浏览的实践和实践,目录树中,减少计划扩大的文件的列表和监视窗口,都在一个界面中,消除开关的麻烦。使用简单的浏览和使用 ACDSee 一样,唯一的区别是在中央的接口,以看到较大的大地图上观看更多的窗口比 ACDSee 方便。
    2023-03-03 21:20:06下载
    积分:1
  • polardrw图形控件文件包中提供了四个编程Demo,包含ocx控件,注册后大家可运行其中的Memo看一下效果...
    polardrw图形控件文件包中提供了四个编程Demo,包含ocx控件,注册后大家可运行其中的Memo看一下效果-Polardrw Image Control file offer four program demo, including ocx control. We can see the result by running the demo after registering.
    2022-01-28 18:19:18下载
    积分:1
  • 24 hour alarm clock application source
    24 hour alarm clock application source
    2023-07-13 20:05:03下载
    积分:1
  • xp界面的记事本源代码
    xp界面的记事本源代码-xp interface code origin Chronicle
    2022-07-03 06:50:56下载
    积分:1
  • very good!
    KEIL 的使用 , 很好的资料哦, 在用KEIL 的,这个很好用哦。-very good!
    2023-02-09 02:45:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载