Serial NO : S00901004-EN
Date of Editing : 2010-01-29
Questions : How to use SoyalComm.dll in VB2005/VB6.0?
Problem Solving :
1. Put “SoyalComm.dll” into the same path with your executable programming file.
The structure of Private Declare Function name、DLL file name、passing parameters 、return data value :
Private Declare Function name Lib "DLL file name" (ByVal passing parameters name As passing parameters type) As return data value
For example:
Private Declare Function IsPortAvailable Lib "SoyalComm.dll" (ByVal portNo As Integer) As Boolean
2. The result of declaring the function:
Text1.Text = " CommPort " & TxtPortNo.Text & " is " & IsPortAvailable(TxtPortNo.Text)
Refer to the example : EX_SoyalComm.dll.rar