从VBScript访问通信端口 [英] Accessing a communication port from VBScript

查看:103
本文介绍了从VBScript访问通信端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的超文本应用程序中实例化MSCOMM32.MSCOM的大量尝试均失败.我是否必须将MSCOMM32包装在标记为可编写脚本的用户ocx中?有没有办法通过命名管道或文本流进行访问?

Numerous attempts to instance MSCOMM32.MSCOM within my hypertext application have failed. Will I have to wrapper MSCOMM32 in a user ocx marked as scriptable? Is there a way to access via named pipe or a textstream?

推荐答案

ActiveX无法创建对象!同时具有对象标签和clsid方法,并在脚本中具有CreateObject("MSCOMM32.MSCOMM")方法.

在询问之前,是的,在定义mscomm之前已定义了许可证管理器,并且已引用了mscomm控件的许可证文件.

我可以在VBA和MSDEV中很好地创建和访问控件.
ActiveX cannot create object! With both object tags and clsid method and in script with the CreateObject("MSCOMM32.MSCOMM") method.

Before you ask, yes the license manager was defined before the mscomm and the license file for the mscomm control was referenced.

I can create and access the control just fine in VBA and MSDEV.


这篇关于从VBScript访问通信端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆