VoiceGuide IVR Software Main Page
Jump to content

Vbscript Compilation Error? Please Help

Recommended Posts

hi

i wrote my VBscript in which i invoqued a function from a

DLL by declaring it like this:

 

Public Declare Function Select Lib "./mydll.dll" (ByVal Port As String) As Integer

-----------------^

 

 

But when executing the script it raises the next message of compilation error :

C:\Project\Codage\myScript.vbs(14, 16) Microsoft VBScript compilation error: Expected end of statement

 

ps : (14, 16) is 14 ligne and 16 colum as indicated above by " ^ " caracter

 

thanks in advance for help ASAP

Share this post


Link to post

It's not supported purely through VBScript.

 

There are a few options if you're determined to do it:

 

1) API calls that don't require complex structures can be called through RUNDLL32.EXE

 

2) You can build a simple Automation object (COM/OLE) which imports the API call, and allows script access to it by way of an object method - just create an instance of your object first wherever you want it to run the method.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×