ASP and VBSCRIPT

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MeAndI

    ASP and VBSCRIPT

    I've got an ASP page and I want to make a reference to the kernel32 library.
    I VB6 I do:
    Declare Public Func ...

    Please help


  • Evertjan.

    #2
    Re: ASP and VBSCRIPT

    MeAndI wrote on 04 nov 2003 in microsoft.publi c.inetserver.as p.general:
    [color=blue]
    > I've got an ASP page and I want to make a reference to the kernel32
    > library. I VB6 I do:
    > Declare Public Func ...[/color]

    response.write "This is a reference to the kernel32 library."

    More seriously:

    Whether you use VBscript on that asp page ot Jscript, it is always a
    scripting language and using a library of a compiling language is illogical
    and impossible.

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Mark Schupp

      #3
      Re: ASP and VBSCRIPT

      You cannot use functions from a windows DLL from VBScript. You will need to
      create a COM object that provides the same function as a member function.
      Simplest way is usually to create a VB ActiveX DLL to "wrap" the desired
      kernal32 function.

      There may already be commercial components to do what you need. What
      Kernal32 functions do you want to call?

      --
      Mark Schupp
      Head of Development
      Integrity eLearning



      "MeAndI" <sebabert@liber o.it> wrote in message
      news:mtKpb.8915 1$vO5.3299416@t wister1.libero. it...[color=blue]
      > I've got an ASP page and I want to make a reference to the kernel32[/color]
      library.[color=blue]
      > I VB6 I do:
      > Declare Public Func ...
      >
      > Please help
      >
      >[/color]


      Comment

      Working...