Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBscript Compilation problem, please help!

Status
Not open for further replies.

0100

Programmer
Sep 9, 2003
6
0
0
FR
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
 
In VBS you can't declare external dll nor use typed variables.

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top