I am trying to call in into a c++ dll:
From the vb module, I did this:HTML Code:GetLibInfo(LPCTSTR libName, long* numEntries, long* numPoints, HANDLE* hLibComment, double* firstX, double* lastX, DATAXTYPE* pxtype, DATAYTYPE* pytype, long* bBaseline, long* libIsATR, long* bReadonly, LIBBYTES* libBytes)
And when I call the function in a form, i get the error messageHTML Code:Public Declare Function GetLibInfo Lib "DLSLibSearch_ur.dll" (ByVal LibName As String, ByRef numEntries As Integer, ByRef numPoints As Integer, ByRef hlibComment As Integer, ByRef FirstX As Double, ByRef LastX As Double, ByRef DataXtype As Integer, ByRef DataYtype As Integer, ByRef bBaseline As Integer, ByRef libIsAtr As Integer, ByRef bReadonly As Integer, ByRef LibBytes As Integer) As Long
I am quite sure it is a conversion that is killing me.......Any suggestions/ideas from anyone will do.HTML Code:Private Function getInfo(ByVal LibName As String) As Long Dim numEntries As Integer Dim numPoints As Integer Dim hlibComment As Integer Dim FirstX As Double Dim LastX As Double Dim DataXtype As Integer Dim DataYtype As Integer Dim bBaseline As Integer Dim libIsAtr As Integer Dim bReadonly As Integer Dim LibBytes As Integer Dim ret As Long ret = GetLibInfo(LibName, numEntries, numPoints, hlibComment, FirstX, LastX, DataXtype, DataYtype, bBaseline, libIsAtr, bReadonly, LibBytes) geInfo = ret End Function


Reply With Quote
