Hello Guest it is April 25, 2024, 05:38:51 PM

Author Topic: Use dll in vb scripts  (Read 2656 times)

0 Members and 1 Guest are viewing this topic.

Use dll in vb scripts
« on: July 20, 2010, 02:55:46 PM »
Example I wish to open port rs232

Code: [Select]
Private Declare Function OpenPort_PR Lib "DevicePORT" (ByVal lpPort_Name As String, ByVal dwSpeed As Long, ByRef lpHandle As Long) As Boolean
Dim hRF As Long
If OpenPort_PR ("Com1:", 115200, hRF) Then Code "(MSG, Port OPEN!)"

mach3 writes error:
Error on line 3 - Error in loading DLL

Whether it is possible to work in general with dll in vb scripts? If yes that as
It correctly to do?