Com Interop VB6 ScriptingContext
-
I want to migrate a Application from ASP and VB6 to .NET The main Part of the appication resides in a DLL written in VB accessing Request, Response and Session Object of the ASP-Page. It returns also a string back to the calling ASP-Page. In a first step, I want to call the VB6.DLL from a .aspx Page. Can I pass the scripting context in a similar way I did with asp? Is it possible to write something like: ... Dim IgPage As New IG4ASPA11.ASPPage IGOutput = IgPage.OnStartPage(xxxxx) IGOutput = IgPage.OnePage .... What would I have to write instead of xxxxx? Your help is very much appreciated Beat I add some relevant code from the old VB6 / ASP-Application VB6-Code START ----------------- Class Module ASPPage Public Sub OnStartPage(PassedScriptingContext As ScriptingContext) ' is autmatically called Set MyScriptingContext = PassedScriptingContext ... End Sub Sub OnePage() ' complex application accessing Session, Request, Response and Applicaiton Object .... MyScriptingContext.Response.Write "Some Direct Response Text" ... OnePage = MyOutput End Sub VB6-Code END ----------------- ASP-Code START------------------ Code from the calling ASP-Page Set ig4asp = Server.CreateObject("IG4asp.ASPpage") zResp = ig4asp.onepage Response.write zResp ASP-Code END------------------ Beat