aclayborne
Programmer
I'm not sure how to approach calling a few functions written in C the reside in a DLL.
I assumed I should create a bas file and declare the functions.
BOOL (WINAPI *lpInitCapture)(int InitMode, HWND hWnd)
void (WINAPI *lpExitCapture)()
int (WINAPI *lpCheckTrigger)()
int (WINAPI *lpCaptureImage)(char* lpFileName)
I translated them to this in a .bas file.
Declare Function lpInitCapture Lib "NB.DLL" (ByVal InitMode As Integer, ByVal hWnd As Long)
Declare Function lpExitCapture Lib "NB.DLL" () As Integer
Declare Function lpCheckTrigger Lib "NB.DLL" () As Integer
pressed.
Declare Function lpCaptureImage Lib "NB.DLL" (ByVal lpFileName As String)
I would greatly appreciate any corrections that anyone has to offer.
I assumed I should create a bas file and declare the functions.
BOOL (WINAPI *lpInitCapture)(int InitMode, HWND hWnd)
void (WINAPI *lpExitCapture)()
int (WINAPI *lpCheckTrigger)()
int (WINAPI *lpCaptureImage)(char* lpFileName)
I translated them to this in a .bas file.
Declare Function lpInitCapture Lib "NB.DLL" (ByVal InitMode As Integer, ByVal hWnd As Long)
Declare Function lpExitCapture Lib "NB.DLL" () As Integer
Declare Function lpCheckTrigger Lib "NB.DLL" () As Integer
pressed.
Declare Function lpCaptureImage Lib "NB.DLL" (ByVal lpFileName As String)
I would greatly appreciate any corrections that anyone has to offer.