Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling C functions form a DLL

Status
Not open for further replies.

aclayborne

Programmer
May 3, 2000
49
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top