如何在asp.net中使用VisM控件 [英] How to use VisM control in asp.net
问题描述
我通过VisM控件将我的应用程序连接到缓存对象db,这是我的VB代码:
公开 类 clsConnect
公共 功能 getTitile()作为 字符串
Dim gstrFormCaption As String
Dim VisM As 新 AxVISMLib.AxVisM
VisM.CreateControl()
使用 VisM
.VALUE =
.PLIST =
.MServer = CN_IPTCP:127.0.0.1 [1972]:127.0.0.1 [1972]
。 NameSpace = MAXHEART
.PDELIM = < span class =code-string> ?r
.P0 =
.Code = 设置VALUE = $$ GetKyokaiNm ^ YFVBS009(P0)
.ExecFlag = 1
gstrFormCaption = .PLIST
结束 使用
getTitile = gstrFormCaption
结束 功能
结束 班级
我将此更改为asp.net代码
我已经创建了一个类库并引用了类库来调用getTitile()函数
但是这里有一个错误:
对于当前线程不是单线程的公寓,你不能实例化'88f75483-0574-11d0-8085-0000c0bd354b'ActiveX控件。 br />
在
Dim VisM As 新 AxVISMLib.AxVisM
所以如何解决这个问题?
我需要帮助
GetKyokaiNm ^ YFVBS009(P0)
.ExecFlag = 1
gstrFormCaption = .PLIST
结束 使用
getTitile = gstrFormCaption
结束 功能
结束 类
我想将此更改为asp.net代码
我创建了一个类库并引用了类库调用getTitile()函数
但这里有一个错误:
对于当前线程不是单线程的公寓,你无法实例化'88f75483-0574- 'dd Vism 作为 新 AxVISMLib.AxVisM
那么如何解决这个问题?
我需要帮助
我尝试使用,但我发现错误消息框显示Err.Number = 52
这一行
YFCom._VisualM Vism = new YFCom.VisualM();
I've connected my app to cache object db via VisM control, here is my VB code:
Public Class clsConnect
Public Function getTitile() As String
Dim gstrFormCaption As String
Dim VisM As New AxVISMLib.AxVisM
VisM.CreateControl()
With VisM
.VALUE = ""
.PLIST = ""
.MServer = "CN_IPTCP:127.0.0.1[1972]:127.0.0.1[1972]"
.NameSpace = "MAXHEART"
.PDELIM = "r"
.P0 = ""
.Code = "set VALUE=$$GetKyokaiNm^YFVBS009(P0)"
.ExecFlag = 1
gstrFormCaption = .PLIST
End With
getTitile = gstrFormCaption
End Function
End Class
I want to change this to asp.net code
I've created a class library and referenced to the class library to call getTitile() function
but there's a error here:
"For the current thread is not a single-threaded apartment, you can not instantiate the '88f75483-0574-11d0-8085-0000c0bd354b 'ActiveX control."
at line
Dim VisM As New AxVISMLib.AxVisM
so how to solve this?
I need helps
GetKyokaiNm^YFVBS009(P0)" .ExecFlag = 1 gstrFormCaption = .PLIST End With getTitile = gstrFormCaption End Function End Class
I want to change this to asp.net code
I've created a class library and referenced to the class library to call getTitile() function
but there's a error here:
"For the current thread is not a single-threaded apartment, you can not instantiate the '88f75483-0574-11d0-8085-0000c0bd354b 'ActiveX control."
at lineDim VisM As New AxVISMLib.AxVisM
so how to solve this?
I need helps
i try to use, but i found error Message Box Show "Err.Number = 52"
this line
YFCom._VisualM Vism = new YFCom.VisualM();
这篇关于如何在asp.net中使用VisM控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!