VB6 Pass Value from Dll to Exe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rajeshnrh74
    New Member
    • Nov 2007
    • 4

    VB6 Pass Value from Dll to Exe

    Hi,
    my project is based on VB6 Activex Dll , Activex Exe and ASP 3.0
    In Activex Dll I'm storing Session ID in one variable.
    How can I get the value (Session ID) stored in that variable in Activex Exe?
    My code is as follows:


    1) VB6 Activex Dll Code:

    Public Function GetSession(ByRe f SessionID As String) As String
    GetSession = SessionID
    End Function

    2) ASP Code:
    <%
    Dim SessionID
    Dim objMyComponent

    Set objMyComponent = Server.CreateOb ject("COMSessio n.clsSession")

    SessionID = objmycomponent. GetSession(Sess ion.SessionID)
    Response.Write SessionID


    %>

    3) Now, I want to write an Activex Exe to get Session ID in VB6 Activex Dll.

    or Tell me the way to get Session ID in Activex Exe from ASP

    Help me.

    Thnks
    Rajesh N.
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    You are talking about using Asynchronous processing. This is when an active x exe is executed within a dll. I think you will need a dll to do the launch becuase of the references needed (runnable)

    This is a pretty tough problem. When I had to do this once I used this code to get it done.

    Last edited by Killer42; Feb 20 '08, 01:59 AM. Reason: Activate link

    Comment

    • VBWheaties
      New Member
      • Feb 2008
      • 145

      #3
      Originally posted by rajeshnrh74
      Hi,
      my project is based on VB6 Activex Dll , Activex Exe and ASP 3.0
      In Activex Dll I'm storing Session ID in one variable.
      How can I get the value (Session ID) stored in that variable in Activex Exe?
      My code is as follows:


      1) VB6 Activex Dll Code:

      Public Function GetSession(ByRe f SessionID As String) As String
      GetSession = SessionID
      End Function

      2) ASP Code:
      <%
      Dim SessionID
      Dim objMyComponent

      Set objMyComponent = Server.CreateOb ject("COMSessio n.clsSession")

      SessionID = objmycomponent. GetSession(Sess ion.SessionID)
      Response.Write SessionID


      %>

      3) Now, I want to write an Activex Exe to get Session ID in VB6 Activex Dll.

      or Tell me the way to get Session ID in Activex Exe from ASP

      Help me.

      Thnks
      Rajesh N.
      a dirty way of doing this would be to make text files and each file will detail what you need. have another process (activex exe) poll the file for changes.

      other than that, I dont know of a way to get asp to use your activex exe without going through the motions of downloading and installing it to the asp client.

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Subscribing .

        Comment

        Working...