Guest khaled Report post Posted 09/16/2003 10:51 AM 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
SupportTeam Report post Posted 09/16/2003 12:35 PM 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