-
大小: 27KB文件类型: .zip金币: 1下载: 0 次发布日期: 2021-05-17
- 语言: 其他
- 标签:
资源简介
Samlight官方网上下载的开发例子,还是可以参考的。积分改为0试试看积分改为0试试看积分改为0试试看
代码片段和文件信息
// DlgProxy.cpp : implementation file
//
#include “stdafx.h“
#include “samlight_client_cpp.h“
#include “DlgProxy.h“
#include “samlight_client_cppDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSamlight_client_cppDlgAutoProxy
IMPLEMENT_DYNCREATE(CSamlight_client_cppDlgAutoProxy CCmdTarget)
CSamlight_client_cppDlgAutoProxy::CSamlight_client_cppDlgAutoProxy()
{
EnableAutomation();
// To keep the application running as long as an automation
// object is active the constructor calls AfxOleLockApp.
AfxOleLockApp();
// Get access to the dialog through the application‘s
// main window pointer. Set the proxy‘s internal pointer
// to point to the dialog and set the dialog‘s back pointer to
// this proxy.
ASSERT (AfxGetApp()->m_pMainWnd != NULL);
ASSERT_VALID (AfxGetApp()->m_pMainWnd);
ASSERT_KINDOF(CSamlight_client_cppDlg AfxGetApp()->m_pMainWnd);
m_pDialog = (CSamlight_client_cppDlg*) AfxGetApp()->m_pMainWnd;
m_pDialog->m_pAutoProxy = this;
}
CSamlight_client_cppDlgAutoProxy::~CSamlight_client_cppDlgAutoProxy()
{
// To terminate the application when all objects created with
// with automation the destructor calls AfxOleUnlockApp.
// Among other things this will destroy the main dialog
if (m_pDialog != NULL)
m_pDialog->m_pAutoProxy = NULL;
AfxOleUnlockApp();
}
void CSamlight_client_cppDlgAutoProxy::OnFinalRelease()
{
// When the last reference for an automation object is released
// OnFinalRelease is called. The base class will automatically
// deletes the object. Add additional cleanup required for your
// object before calling the base class.
CCmdTarget::OnFinalRelease();
}
BEGIN_MESSAGE_MAP(CSamlight_client_cppDlgAutoProxy CCmdTarget)
//{{AFX_MSG_MAP(CSamlight_client_cppDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(CSamlight_client_cppDlgAutoProxy CCmdTarget)
//{{AFX_DISPATCH_MAP(CSamlight_client_cppDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_ISamlight_client_cpp to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {7C17BCF2-CD40-4A20-B9D0-31F90370D9C4}
static const IID IID_ISamlight_client_cpp =
{ 0x7c17bcf2 0xcd40 0x4a20 { 0xb9 0xd0 0x31 0xf9 0x3 0x70 0xd9 0xc4 } };
BEGIN_INTERFACE_MAP(CSamlight_client_cppDlgAutoProxy CCmdTarget)
INTERFACE_PART(CSamlight_client_cppDlgAutoProxy IID_ISamlight_client_cpp Dispatch)
END_INTERFACE_MAP()
// The IMPLEMENT_OLECREATE2 macro is defined in StdAfx.h of this project
// {7B997ABE-09CF-4B32-B7CE-030005391E00}
IMPLEMENT_OLECREATE2(CSamlight_client
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-12-09 00:30 samlight_client_tcp_cpp\
文件 1190 2014-12-09 00:30 samlight_client_tcp_cpp\samlight_client_cpp.odl
文件 1782 2014-12-09 00:30 samlight_client_tcp_cpp\DlgProxy.h
文件 13184 2014-12-09 00:30 samlight_client_tcp_cpp\samlight_client_cpp.rc
文件 13479 2014-12-09 00:30 samlight_client_tcp_cpp\samlight_client_ctrl_ocx.h
文件 30844 2014-12-09 00:30 samlight_client_tcp_cpp\samlight_client_cppDlg.cpp
文件 4172 2014-12-09 00:30 samlight_client_tcp_cpp\resource.h
文件 649 2014-12-09 00:30 samlight_client_tcp_cpp\samlight_client_cpp.dsw
文件 3260 2014-12-09 00:30 samlight_client_tcp_cpp\DlgProxy.cpp
文件 5588 2014-12-09 00:30 samlight_client_tcp_cpp\samlight_client_cpp.dsp
文件 2097 2014-12-09 00:30 samlight_client_tcp_cpp\StdAfx.h
文件 8160 2014-07-04 11:53 samlight_client_tcp_cpp\samlight_client_cpp.vcproj
文件 2711 2014-12-09 00:30 samlight_client_tcp_cpp\samlight_client_cpp.cpp
文件 883 2014-07-04 11:53 samlight_client_tcp_cpp\samlight_client_cpp.sln
文件 1521 2014-12-09 00:30 samlight_client_tcp_cpp\samlight_client_cpp.h
文件 433 2014-12-09 00:30 samlight_client_tcp_cpp\samlight_client_ctrl_ocx.cpp
目录 0 2014-12-09 00:30 samlight_client_tcp_cpp\res\
文件 411 2014-12-09 00:30 samlight_client_tcp_cpp\res\samlight_client_cpp.rc2
文件 1078 2005-12-22 09:29 samlight_client_tcp_cpp\res\samlight_client_cpp.ico
文件 4943 2014-12-09 00:30 samlight_client_tcp_cpp\samlight_client_cppDlg.h
文件 221 2014-12-09 00:30 samlight_client_tcp_cpp\StdAfx.cpp
- 上一篇:vfp软件做的订单管理系统
- 下一篇:元胞自动机交通流模拟
评论
共有 条评论