Hi!
I have just started to create an application for the CLEyeCam on VB.
My first step was just to import one function from the dll and see if it works.
This is my class
Public Class CLEyeCameraDevice
Public Declare Function CLEyeGetCameraCount Lib "CLEyeMulticam.dll" () As Integer
End Class
And this is the code for testing the function
MsgBox("Num of Cameras found: " & CLEyeCameraDevice.CLEyeGetCameraCount())
now i get a runtime error saying
A first chance exception of type 'System.BadImageFormatException' occurred in EyeCam.exe
what am I doing wrong? do i have to initialize anything first?
Thanx for any help.
@admins, I would be willing to provide my source code, if my app will be finished, as an example for VB in the future