本文介绍了如何在asp.net中使用VisM控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我通过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 = ?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 FunctionEnd ClassI want to change this to asp.net codeI've created a class library and referenced to the class library to call getTitile() functionbut 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.AxVisMso how to solve this?I need helps 解决方案 GetKyokaiNm^YFVBS009(P0)" .ExecFlag = 1 gstrFormCaption = .PLIST End With getTitile = gstrFormCaption End FunctionEnd ClassI want to change this to asp.net codeI've created a class library and referenced to the class library to call getTitile() functionbut 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.AxVisMso how to solve this?I need helpsi try to use, but i found error Message Box Show "Err.Number = 52"this lineYFCom._VisualM Vism = new YFCom.VisualM(); 这篇关于如何在asp.net中使用VisM控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-06 01:02