09-23-2019 03:10 AM
Hope to add a new function in VB 6570 DLL,detail information as follow
Public Declare Function niDigital_GetTimeSetPeriod Lib "C:\Program Files (X86)\IVI Foundation\IVI\Bin\niDigital_32.dll" ( _
ByVal vi As Long, _
ByVal Timeset As String, _
ByVal period As Double) As long
but run with error "Bad DLL calling convention"? why ?
Solved! Go to Solution.
09-23-2019 09:11 AM
I'm not super familiar with how to call C functions from VB6, but this function is stdcall. One thing that looks incorrect though with what you have is that the period argument should not be ByVal. It's an output parameter.