
![]()
Learn more about our scanners at: https://joescan.com![]()
Page History
In order to create a program that uses the API, you must #include jcam_dll.h in your source code and link to the jcam_dll.lib file in your project. In Visual C++, this is accomplished by going to:
...
- Link jcam_dll.lib with your project.
#defineJCAM_STATIC_LIB#includejcam_dll.h- Use the
joescannamespace. - Call
jsInitialize()before calling any other Joescan API functions.
...
If you dynamically link the API functions to your own application, you will need to distribute jcam_dll.dll with your application. jsInitialize() will be automatically called by the Windows dynamic library loader. That leaves you with five things you must do:
- Link jcam_dll.lib with your project.
- Distribute jcam_dll.dll with your application.
#defineJCAM_DYNAMIC_LIB#includejcam_dll.h- Use the
joescannamespace.
You should put the jcam_dll.dll file in your project's Debug and Release directories so your program runs when you test it. When you distribute your application, the jcam_dll.dll file must be in the search path for the program, probably the install directory.
#define JCAM_DYNAMIC_LIB #include "jcam_dll.h" using namespace joescan;
All the symbolic constants used in this manual are defined in the file jcam_dll.h.
The joescan Namespace
If you're using C++, you can either use the joescan namespace as above and in the examples, or you can fully qualify its members. For example:
joescan::JCONNECTION jc = joescan::jsOpenConnection("192.168.1.105");