DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Nikki Guest

    Need to call API functions


    Hi,

    I need to call functions from another program.
    In VB I would do this:

    Private Declare Function ConnectVB _
    Lib "_krnl.dll" () As Long
    Private Declare Function DisconnectVB _
    Lib "_krnl.dll" () As Long
    Private Declare Function ConnectedTriggerVB _
    Lib "_krnl.dll" (ByVal TRXName As String) As Long
    Private Declare Function UnconnectedTriggerVB _
    Lib "_krnl.dll" (ByVal N As String) As Long

    and then I could call these functions. Can I do anything similar
    in VBSript? Or would I have to make a component to do this?

  2. #2
    Potential Author Guest

    Re: Need to call API functions


    Nikki,

    You will need a component since VBScript does not have direct access to the
    system. The best thing is to "wrap" these calls in a VB component, just the
    way you have done it in your example.

    PA

    "Nikki" <aredwards@rockwell.software.com> wrote:
    >
    >Hi,
    >
    >I need to call functions from another program.
    >In VB I would do this:
    >
    >Private Declare Function ConnectVB _
    > Lib "_krnl.dll" () As Long
    >Private Declare Function DisconnectVB _
    > Lib "_krnl.dll" () As Long
    >Private Declare Function ConnectedTriggerVB _
    > Lib "_krnl.dll" (ByVal TRXName As String) As Long
    >Private Declare Function UnconnectedTriggerVB _
    > Lib "_krnl.dll" (ByVal N As String) As Long
    >
    >and then I could call these functions. Can I do anything similar
    >in VBSript? Or would I have to make a component to do this?



Similar Threads

  1. Replies: 0
    Last Post: 10-25-2002, 02:25 AM
  2. Can API call VB function?
    By Chris in forum VB Classic
    Replies: 1
    Last Post: 02-27-2002, 02:04 PM
  3. api call to stop a service
    By Craig in forum VB Classic
    Replies: 0
    Last Post: 05-14-2001, 08:17 PM
  4. Where do i learn all the functions of the API
    By Danny in forum VB Classic
    Replies: 0
    Last Post: 09-28-2000, 02:42 AM
  5. Trouble finding api information on Internet functions
    By Jonathan Martindell in forum authorevents.appleman
    Replies: 1
    Last Post: 04-12-2000, 01:37 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links