|
-
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?
-
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
-
Replies: 0
Last Post: 10-25-2002, 02:25 AM
-
By Chris in forum VB Classic
Replies: 1
Last Post: 02-27-2002, 02:04 PM
-
By Craig in forum VB Classic
Replies: 0
Last Post: 05-14-2001, 08:17 PM
-
By Danny in forum VB Classic
Replies: 0
Last Post: 09-28-2000, 02:42 AM
-
By Jonathan Martindell in forum authorevents.appleman
Replies: 1
Last Post: 04-12-2000, 01:37 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks