开发者

Call function in VB.Net DLL without registering the DLL

Is it possible to call a function in a VB.Net dll without开发者_Python百科 having registered the dll file? I need to call it from ASP Classic on shared hosting web server.


The only way to call a VB.NET DLL from Classic ASP is to make it a COM object and call it as such.


Assuming the host also support .NET you can follow those steps to achieve what you want:

  1. Create new ASP.NET web application
  2. Add reference to that DLL
  3. Build .aspx web form that call the function in its Page_Load call it for example Func.aspx
  4. In the classic ASP use XMLHTTP to send request to Func.aspx thus invoking the function and parse the results if needed.

I've done similar thing in the past to resize images on the fly from classic ASP without third party component so the concept itself is working.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜