资源简介
UG 二次开发 MFC 外部模式 开发实例 包含完整源代码 很好的一个例子 学习的好例子

代码片段和文件信息
// MFC in UG.cpp : Defines the initialization routines for the DLL.
//
#include “stdafx.h“
#include “MFC in UG.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//
// Note!
//
// If this DLL is dynamically linked against the MFC
// DLLs any functions exported from this DLL which
// call into MFC must have the AFX_MANAGE_STATE macro
// added at the very beginning of the function.
//
// For example:
//
// extern “C“ BOOL PASCAL EXPORT ExportedFunction()
// {
// AFX_MANAGE_STATE(AfxGetStaticModuleState());
// // normal function body here
// }
//
// It is very important that this macro appear in each
// function prior to any calls into MFC. This means that
// it must appear as the first statement within the
// function even before any object variable declarations
// as their constructors may generate calls into the MFC
// DLL.
//
// Please see MFC Technical Notes 33 and 58 for additional
// details.
//
/////////////////////////////////////////////////////////////////////////////
// CMFCinUGApp
BEGIN_MESSAGE_MAP(CMFCinUGApp CWinApp)
//{{AFX_MSG_MAP(CMFCinUGApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMFCinUGApp construction
CMFCinUGApp::CMFCinUGApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMFCinUGApp object
CMFCinUGApp theApp;
#include
#include
#include
#include
#include yler.h>
#include
extern “C“ DllExport void ufusr( char *param int *returnCode int rlen )//UG/Open函数入口
{
int errorCode = UF_initialize();
if ( 0 == errorCode )
{
//实现所需功能的函数调用,如:
AfxMessageBox(“I have realized how to call MFC in UG development!“);
errorCode = UF_terminate();
}
}
extern “C“ int ufusr_ask_unload( void )
{
return( UF_UNLOAD_UG_TERMINATE );
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 18816 2008-11-17 09:35 MFC in UG\MFC in UG.aps
文件 334 2007-05-27 01:02 MFC in UG\MFC in UG.clw
文件 2307 2008-11-17 09:50 MFC in UG\MFC in UG.cpp
文件 193 2007-05-27 01:02 MFC in UG\MFC in UG.def
文件 4319 2007-11-01 19:57 MFC in UG\MFC in UG.dsp
文件 543 2007-05-29 23:48 MFC in UG\MFC in UG.dsw
文件 1270 2007-05-27 01:02 MFC in UG\MFC in UG.h
文件 11045888 2008-11-17 10:41 MFC in UG\MFC in UG.ncb
文件 78848 2007-11-01 19:57 MFC in UG\MFC in UG.opt
文件 822 2007-11-01 19:57 MFC in UG\MFC in UG.plg
文件 3083 2007-05-27 01:02 MFC in UG\MFC in UG.rc
文件 882 2008-11-17 10:41 MFC in UG\MFC in UG.sln
..A..H. 10752 2008-11-17 10:41 MFC in UG\MFC in UG.suo
文件 7145 2008-11-17 10:41 MFC in UG\MFC in UG.vcproj
文件 1401 2008-11-17 10:41 MFC in UG\MFC in UG.vcproj.DD677F0119E74F1.Administrator.user
文件 2599 2007-05-27 01:02 MFC in UG\ReadMe.txt
文件 401 2007-05-27 01:02 MFC in UG\res\MFC in UG.rc2
文件 381 2007-05-27 01:02 MFC in UG\Resource.h
文件 211 2007-05-27 01:02 MFC in UG\StdAfx.cpp
文件 1447 2007-05-27 01:02 MFC in UG\StdAfx.h
目录 0 2008-11-17 09:35 MFC in UG\Debug
目录 0 2008-11-16 09:12 MFC in UG\Release
目录 0 2008-11-16 09:12 MFC in UG\res
目录 0 2008-11-17 10:41 MFC in UG
----------- --------- ---------- ----- ----
11181860 25
相关资源
- 基于MFC的TCP调试助手源码95706
- 基于mfc的多线程文件传输
- MFC数字钟(基于VC6.0)
- VC++MFC小游戏实例教程(实例)+MFC类库
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- mfc 调用redis
- MFC视频播放器源码(支持avi/wma/mp3等格
- mfc绘图大全(画直线、矩形、椭圆)
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- (学习)VS2010之MFC入门到精通教程
- 基于VC++的SolidWorks二次开发SolidWorks
- MFC文档_视图_框架_模板结构体系深入
- 简单员工管理系统(适合初学MFC)
- MFC五子棋游戏
- MFC UDP编程
- MFC的异步网络通讯应用程序
- C++MFC模块讲解,黑发程序员课程整理
- 一个简单而强大的基于MFC的web server源
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- MFCaccess.rar
- VC++MFC课程设计的学生成绩管理系统
- MFC 日历控件 万年历 Calendar自绘
- CrystalDiskInfo-HDD/SSD硬盘信息,SMART信息
- MFC自定义界面HUI,高效简单,含详细
- 仿射密码-Affine cipher
- c++MFC车牌自动识别定位,只能定位和
- mfc+sql 酒店客房管理系统
- 基于图割的图像分割OpenCV+MFC实现
评论
共有 条评论