Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Com Interop VB6 ScriptingContext

Com Interop VB6 ScriptingContext

Scheduled Pinned Locked Moved Visual Basic
comcsharpsysadminhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JackTheGambler
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups