从.aspx.vb点网页调用VB 6.0函数 [英] Calling VB 6.0 function from .aspx.vb dot net page

查看:109
本文介绍了从.aspx.vb点网页调用VB 6.0函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用VB 6.0编写的函数,比如说:abc.cls下的myfunction()


现在我在visual studio 2012中有一个项目名称页面名称让我说mypagename.aspx.vb页面的mypagename.aspx代码我在这里编写了一个函数myvbfunction我调用VB 6.0函数同时调用我得到的错误它不是类的成员我运行该项目。



如果条件=是

oMyVbClassname.myfunction(参数1,参数2)

其他

oMyVbClassname.myOtherOneFunction(parameter1,parameter2)

结束如果





oMyVbClassname.myfunction (参数1,参数2)在VB 6.0中,当我调用它时我得到错误

I have a function written in VB 6.0 let say : myfunction () under the class abc.cls

Now i have project name in visual studio 2012 having a page name let say mypagename.aspx code for the page mypagename.aspx.vb in this i have written a function myvbfunction in this i am calling the VB 6.0 function while calling i am getting the ERROR that it is not a member of the class when i run the project .

if Condition = "Yes"
oMyVbClassname.myfunction(parameter1 , parameter2 )
Else
oMyVbClassname.myOtherOneFunction(parameter1 , parameter2 )
End If


oMyVbClassname.myfunction(parameter1 , parameter2 ) which is in VB 6.0 and when i call this i am getting the error

推荐答案

它不起作用!

在VB.NET中重写函数以将其与ASP.NET一起使用。
It won't work!
Rewrite function in VB.NET to use it with ASP.NET.


这篇关于从.aspx.vb点网页调用VB 6.0函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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