Building an application with sx12 dll, Functions reference, Dll load/unload functions – Sensoray 512 User Manual
Page 10: X12_dllopen

10
6. Building an Application with SX12 DLL
The following files are distributed with sx12.dll:
sx12.h
– contains data types and constants definitions;
sx12f.h
– contains exported functions declarations;
sx12app.c
– contains exported functions and helper functions definitions.
When building an application with sx12.dll, it is necessary to include sx12app.c in the project.
If MFC is used, an option "Not using precompiled headers" must be set in the project settings for
sx12app.c.
All modules containing calls to the sx11.dll functions must include sx11f.h. Please refer to the
sample source code for an example of building an application with SX12 DLL.
7. Functions Reference
The SX12 DLL is designed to provide the application developer with full control over the frame grabber.
All special data types used by the DLL are defined in sx12.h. The sample application illustrates the use of
most of the functions and allows building a custom application within minutes.
7.1. DLL Load/Unload Functions
X12_DLLOpen
int X12_DLLOpen(void);
Parameters
None.
Return values
Returns 0 in case of success, or an error code.
Notes
Searches for the file SX12.DLL in the following sequence:
1. The directory from which the application loaded.
2. The current directory.
3. Windows 95:
•
The Windows SYSTEM directory.
Windows NT:
•
The Windows SYSTEM32 directory.
•
The 16-bit Windows SYSTEM directory.
4. The Windows directory
5. The directories that are listed in the PATH environment variable.