Hello Guest it is July 15, 2025, 02:21:08 AM

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

0 Members and 2 Guests 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?