UG 二次开发 MFC 外部模式 开发实例 包含完整源代码 很好的一个例子 学习的好例子
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 18816 2008-11-17 09:35 MFC in UGMFC in UG.aps
文件 334 2007-05-27 01:02 MFC in UGMFC in UG.clw
文件 2307 2008-11-17 09:50 MFC in UGMFC in UG.cpp
文件 193 2007-05-27 01:02 MFC in UGMFC in UG.def
文件 4319 2007-11-01 19:57 MFC in UGMFC in UG.dsp
文件 543 2007-05-29 23:48 MFC in UGMFC in UG.dsw
文件 1270 2007-05-27 01:02 MFC in UGMFC in UG.h
文件 11045888 2008-11-17 10:41 MFC in UGMFC in UG.ncb
文件 78848 2007-11-01 19:57 MFC in UGMFC in UG.opt
文件 822 2007-11-01 19:57 MFC in UGMFC in UG.plg
文件 3083 2007-05-27 01:02 MFC in UGMFC in UG.rc
文件 882 2008-11-17 10:41 MFC in UGMFC in UG.sln
..A..H. 10752 2008-11-17 10:41 MFC in UGMFC in UG.suo
文件 7145 2008-11-17 10:41 MFC in UGMFC in UG.vcproj
文件 1401 2008-11-17 10:41 MFC in UGMFC in UG.vcproj.DD677F0119E74F1.Administrator.user
文件 2599 2007-05-27 01:02 MFC in UGReadMe.txt
文件 401 2007-05-27 01:02 MFC in UG
esMFC in UG.rc2
文件 381 2007-05-27 01:02 MFC in UGResource.h
文件 211 2007-05-27 01:02 MFC in UGStdAfx.cpp
文件 1447 2007-05-27 01:02 MFC in UGStdAfx.h
目录 0 2008-11-17 09:35 MFC in UGDebug
目录 0 2008-11-16 09:12 MFC in UGRelease
目录 0 2008-11-16 09:12 MFC in UG
es
目录 0 2008-11-17 10:41 MFC in UG
----------- --------- ---------- ----- ----
11181860 25
// 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 UGMFC in UG.aps
文件 334 2007-05-27 01:02 MFC in UGMFC in UG.clw
文件 2307 2008-11-17 09:50 MFC in UGMFC in UG.cpp
文件 193 2007-05-27 01:02 MFC in UGMFC in UG.def
文件 4319 2007-11-01 19:57 MFC in UGMFC in UG.dsp
文件 543 2007-05-29 23:48 MFC in UGMFC in UG.dsw
文件 1270 2007-05-27 01:02 MFC in UGMFC in UG.h
文件 11045888 2008-11-17 10:41 MFC in UGMFC in UG.ncb
文件 78848 2007-11-01 19:57 MFC in UGMFC in UG.opt
文件 822 2007-11-01 19:57 MFC in UGMFC in UG.plg
文件 3083 2007-05-27 01:02 MFC in UGMFC in UG.rc
文件 882 2008-11-17 10:41 MFC in UGMFC in UG.sln
..A..H. 10752 2008-11-17 10:41 MFC in UGMFC in UG.suo
文件 7145 2008-11-17 10:41 MFC in UGMFC in UG.vcproj
文件 1401 2008-11-17 10:41 MFC in UGMFC in UG.vcproj.DD677F0119E74F1.Administrator.user
文件 2599 2007-05-27 01:02 MFC in UGReadMe.txt
文件 401 2007-05-27 01:02 MFC in UG
esMFC in UG.rc2
文件 381 2007-05-27 01:02 MFC in UGResource.h
文件 211 2007-05-27 01:02 MFC in UGStdAfx.cpp
文件 1447 2007-05-27 01:02 MFC in UGStdAfx.h
目录 0 2008-11-17 09:35 MFC in UGDebug
目录 0 2008-11-16 09:12 MFC in UGRelease
目录 0 2008-11-16 09:12 MFC in UG
es
目录 0 2008-11-17 10:41 MFC in UG
----------- --------- ---------- ----- ----
11181860 25
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)