当前位置: 代码迷 >> VC/MFC >> VC++6.0开发的ActiveX在Web上公布需要依赖那些东东呀?
  详细解决方案

VC++6.0开发的ActiveX在Web上公布需要依赖那些东东呀?

热度:66   发布时间:2016-05-02 03:48:28.0
VC++6.0开发的ActiveX在Web上发布需要依赖那些东东呀??
在Win7X64系统上使用VC++6.0开发了一个ActiveX,具体功能是:
在JS中调用ActiveX的start方法后,
ActiveX会调用客户端本地一个vbs文件
vbs文件中执行了一个客户端本地的exe文件

在我本地注册ActiveX的ocx文件,并运行,没有问题。
但在另外一个没有VC++6.0开发环境的Win7中就无法注册这个ocx

我的问题是:
这个ActiveX都需要依赖那些东东呀,怎么才能在其他的机子上使用?


ActiveX的start方法,代码如下:
BSTR CActiveXCtrl::start() 
{
CScreenRecordString strResult = "";
try{
SHELLEXECUTEINFO shei;
shei.cbSize = sizeof(shei);
shei.fMask = SEE_MASK_INVOKEIDLIST;
shei.lpFile = _T("C://Windows//Downloaded Program Files//ScreenRecordActiveX.vbs");
shei.lpVerb = _T("open");

CString cmd = m_audioName + "#merit#" + m_savePath;
HINSTANCE hInstance = ShellExecute(NULL,shei.lpVerb,shei.lpFile,_T(cmd),_T(""),SW_HIDE);
strResult = strResult + (CString)(int)hInstance;
}catch(...){
strResult = "发生异常!";
}
return strResult.AllocSysString();
}
------解决思路----------------------
VC runtime相关的DLL, mfc相关的dll
  相关解决方案