资源简介
ocx和js的交互调用。
ocx中事件函数,调用js中的回调函数例程。
适用初学者。良心奉献。内有说明
代码片段和文件信息
// MFCActiveXControl1.cpp : CMFCActiveXControl1App 和 DLL 注册的实现。
#include “stdafx.h“
#include “MFCActiveXControl1.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
CMFCActiveXControl1App theApp;
const GUID CDECL _tlid = { 0x279C1503 0xD18D 0x4035 { 0xAA 0xB8 0x41 0xC9 0x33 0xF2 0x6D 0xAD } };
const WORD _wVerMajor = 1;
const WORD _wVerMinor = 0;
// CMFCActiveXControl1App::InitInstance - DLL 初始化
BOOL CMFCActiveXControl1App::InitInstance()
{
BOOL bInit = COleControlModule::InitInstance();
if (bInit)
{
// TODO: 在此添加您自己的模块初始化代码。
}
return bInit;
}
// CMFCActiveXControl1App::ExitInstance - DLL 终止
int CMFCActiveXControl1App::ExitInstance()
{
// TODO: 在此添加您自己的模块终止代码。
return COleControlModule::ExitInstance();
}
// DllRegisterServer - 将项添加到系统注册表
STDAPI DllRegisterServer(void)
{
AFX_MANAGE_STATE(_afxModuleAddrThis);
if (!AfxOleRegisterTypeLib(AfxGetInstanceHandle() _tlid))
return ResultFromScode(SELFREG_E_TYPELIB);
if (!COleobjectFactoryEx::UpdateRegistryAll(TRUE))
return ResultFromScode(SELFREG_E_CLASS);
return NOERROR;
}
// DllUnregisterServer - 将项从系统注册表中移除
STDAPI DllUnregisterServer(void)
{
AFX_MANAGE_STATE(_afxModuleAddrThis);
if (!AfxOleUnregisterTypeLib(_tlid _wVerMajor _wVerMinor))
return ResultFromScode(SELFREG_E_TYPELIB);
if (!COleobjectFactoryEx::UpdateRegistryAll(FALSE))
return ResultFromScode(SELFREG_E_CLASS);
return NOERROR;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-11-05 13:07 MFCActiveXControl1\
目录 0 2017-11-05 13:07 MFCActiveXControl1\Debug\
文件 117248 2017-11-05 13:02 MFCActiveXControl1\Debug\MFCActiveXControl1.ocx
文件 1240 2017-11-05 11:51 MFCActiveXControl1\Debug\testInterface.html
目录 0 2017-11-05 13:07 MFCActiveXControl1\MFCActiveXControl1\
文件 1556 2017-11-05 11:01 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1.cpp
文件 174 2017-11-05 11:01 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1.def
文件 500 2017-11-05 11:01 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1.h
文件 1087 2017-11-05 11:31 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1.idl
文件 7012 2017-11-05 11:01 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1.rc
文件 7195 2017-11-05 11:32 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1.vcxproj
文件 2468 2017-11-05 11:01 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1.vcxproj.filters
文件 625 2017-11-05 13:02 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1.vcxproj.user
文件 238 2013-07-22 01:18 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1Ctrl.bmp
文件 4367 2017-11-05 11:38 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1Ctrl.cpp
文件 1225 2017-11-05 11:31 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1Ctrl.h
文件 1465 2017-11-05 11:01 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1PropPage.cpp
文件 631 2017-11-05 11:01 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1PropPage.h
文件 2130 2017-11-05 13:02 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1_i.c
文件 10456 2017-11-05 13:02 MFCActiveXControl1\MFCActiveXControl1\MFCActiveXControl1idl.h
文件 3181 2017-11-05 11:01 MFCActiveXControl1\MFCActiveXControl1\ReadMe.txt
文件 550 2017-11-05 11:01 MFCActiveXControl1\MFCActiveXControl1\Resource.h
文件 147 2017-11-05 11:01 MFCActiveXControl1\MFCActiveXControl1\stdafx.cpp
文件 1103 2017-11-05 11:01 MFCActiveXControl1\MFCActiveXControl1\stdafx.h
文件 236 2017-11-05 11:01 MFCActiveXControl1\MFCActiveXControl1\targetver.h
文件 1000 2017-11-05 11:01 MFCActiveXControl1\MFCActiveXControl1.sln
文件 22528 2017-11-05 13:02 MFCActiveXControl1\MFCActiveXControl1.v12.suo
文件 187 2017-11-05 13:06 说明.txt
- 上一篇:用Prolog求解传教士和野人问题
- 下一篇:nyoj部分ACM答案
评论
共有 条评论