资源简介

移动代理服务器MAS短信API2.2开发手册及问题列表及DEMO,包括ASP,VB,JAVA,C/C++,PB,DELPHI,.NET等

资源截图

代码片段和文件信息

// DlgProxy.cpp : implementation file
//

#include “stdafx.h“
#include “VCDemo.h“
#include “DlgProxy.h“
#include “VCDemoDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CVCDemoDlgAutoProxy

IMPLEMENT_DYNCREATE(CVCDemoDlgAutoProxy CCmdTarget)

CVCDemoDlgAutoProxy::CVCDemoDlgAutoProxy()
{
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(CVCDemoDlg AfxGetApp()->m_pMainWnd);
m_pDialog = (CVCDemoDlg*) AfxGetApp()->m_pMainWnd;
m_pDialog->m_pAutoProxy = this;
}

CVCDemoDlgAutoProxy::~CVCDemoDlgAutoProxy()
{
// 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 CVCDemoDlgAutoProxy::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(CVCDemoDlgAutoProxy CCmdTarget)
//{{AFX_MSG_MAP(CVCDemoDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

BEGIN_DISPATCH_MAP(CVCDemoDlgAutoProxy CCmdTarget)
//{{AFX_DISPATCH_MAP(CVCDemoDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()

// Note: we add support for IID_IVCDemo to support typesafe binding
//  from VBA.  This IID must match the GUID that is attached to the 
//  dispinterface in the .ODL file.

// {1CAF3AB5-0CB4-4396-AD3A-CAEC6E2D40A1}
static const IID IID_IVCDemo =
{ 0x1caf3ab5 0xcb4 0x4396 { 0xad 0x3a 0xca 0xec 0x6e 0x2d 0x40 0xa1 } };

BEGIN_INTERFACE_MAP(CVCDemoDlgAutoProxy CCmdTarget)
INTERFACE_PART(CVCDemoDlgAutoProxy IID_IVCDemo Dispatch)
END_INTERFACE_MAP()

// The IMPLEMENT_OLECREATE2 macro is defined in StdAfx.h of this project
// {D387088D-30DC-4107-9142-F5FAA3DCEEC0}
IMPLEMENT_OLECREATE2(CVCDemoDlgAutoProxy “VCDemo.Application“ 0xd387088d 0x30dc 0x4107 0x91 0x42 0xf5 0xfa 0xa3 0xdc 0xee 0xc0)

/////////////////////////////////////////////////////////////////////////////
// CVCDemoDlgAutoProxy message handlers

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     387344  2007-11-22 17:12  ASP\ADVAPI32.DLL

     文件      74810  2007-11-22 17:12  ASP\atl.dll

     文件       6558  2007-11-22 17:12  ASP\demo\default.htm

     文件       1549  2007-11-22 17:12  ASP\demo\init.asp

     文件        864  2007-11-22 17:12  ASP\demo\receiveRPT.asp

     文件        860  2007-11-22 17:12  ASP\demo\receiveSM.asp

     文件        455  2007-11-22 17:12  ASP\demo\release.asp

     文件       1257  2007-11-22 17:12  ASP\demo\sendPDUSm.asp

     文件        999  2007-11-22 17:12  ASP\demo\sendSm.asp

     文件       1168  2007-11-22 17:12  ASP\demo\sendWapPushSM.asp

     文件     233744  2007-11-22 17:12  ASP\GDI32.DLL

     文件     225332  2007-11-22 17:12  ASP\ImApi.dll

     文件        875  2007-11-22 17:12  ASP\ImApi的ActvicX控件说明.txt

     文件      57344  2007-11-22 17:12  ASP\JASSON.dll

     文件     871696  2007-11-22 17:12  ASP\KERNEL32.DLL

     文件     249856  2007-11-22 17:12  ASP\libmySQL.dll

     文件     286773  2007-11-22 17:12  ASP\msvcrt.dll

     文件     491792  2007-11-22 17:12  ASP\NTDLL.DLL

     文件     996112  2007-11-22 17:12  ASP\OLE32.DLL

     文件     626960  2007-11-22 17:12  ASP\OLEAUT32.DLL

     文件     164112  2007-11-22 17:12  ASP\OLEPRO32.DLL

     文件     454416  2007-11-22 17:12  ASP\rpcrt4.dll

     文件     403216  2007-11-22 17:12  ASP\USER32.DLL

     文件      18192  2007-11-22 17:12  ASP\ws2help.dll

     文件      69904  2007-11-22 17:12  ASP\ws2_32.dll

     文件      27920  2007-11-22 17:12  ASP\wsock32.dll

     文件     118827  2007-11-22 17:12  C&C++\bin\DemoVC.exe

     文件     225322  2007-11-22 17:12  C&C++\bin\ImApi.dll

     文件       5503  2007-11-22 17:35  C&C++\bin\ImApi.h

     文件       4668  2007-11-22 17:12  C&C++\bin\ImApi.lib

............此处省略354个文件信息

评论

共有 条评论