手动为ACTIVEX添加可用于JS调用函数或参数
首先、在ODL文件中添加以下:
[ uuid(68F8EAFF-2E62-4964-8B1B-413B21F4342D),
helpstring("Dispatch interface for MyActiveX Control"), hidden ]
dispinterface _DMyActiveX
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{
{AFX_ODL_PROP(CMyActiveXCtrl)
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{
{AFX_ODL_METHOD(CMyActiveXCtrl)