I am new to using .dll's in c++ and am trying to load a .dll file in my code. The dll is "Extremely Simple Capture API" or escapi.dll . The site I got the .dll from did not include a library file with the .dll, and considering I don't know how to load a .dll with the library file, trying to do it without it is doubly hard. i just want to take a snapshot with the webcam on the computer and display the image on the screen.
The functions I use from the .dll to do this are:
int setupESCAPI(int height, int width);
int initCapture(SimpleCapParams *capture);
void doCapture();
void isCaptureDone();
void deinitCapture();
If anyone can give me easy instructions on how to include this .dll without a .lib file, I would appreciate it. Thanks.
Dan
I looked at the download for ESCAPI and it has all you need. Just include escapi.cpp in your project and call
setupESCAPI
.setupESCAPI
loads the DLL for you. You will also need to put the DLL in the same folder as your executable.