X-API Documentation
X-API Version 3.3.0.0
The Windows Version of the SDK is also accessible as an Active-X component. The implemented class objects are described in Namespace
ACTIVESWLib. The interfaces and classes include
Major differences between ActiveX and core (c-api) SignWare implementation:
- Instantiation of a SignWare COM object typically allocates resources within the COM framework, but does not instantiate the associated SignWare object. Call the according Create - method to create the SignWare object.
- Some environments either do not support SAFEARRAY's or implement SAFEARRAY access incomplete, the x-api Interfaces partly add methods to pass base64 encoded strings to replace SAFEARRAYS.
The ActiveX component is implemented in a file "ActiveSW.dll".
- You must add a path to the C-API libraries (typically INSTALL-DIRECTORY-SIGNWARE\c-api\Win32) in your PATH environment variable.
- Register ACTIVESW classes
- run regsvr32 ActiveSW.dll.
Note: you must run regsvr32 with adminstrative rights on Windows Vista or newer Windows Versions - Please assure that the c-api libraries are accessible through the path variable from your application, else most functions will return an error SP_LINKLIBRARYERR.
- Import ActiveSW.dll in your source file where you want to access SignWare functionality. The compiler will create ActiveSW.tlb and ActiveSW.tlh files, that include the definitions required to call SignWare methods.
All Signware methods return an error code as described in the method description.
- Call SPSignwareGetErrorString to convert the error code to a string in English.
- More detailed information about errors is written into a logfile, if an environment variable SPDEBUG is set to a value in the range 0 .. 5, where 0 does not log any information, while 5 logs most information. The log file is defined by the environment variable SPDEBUGDIR, default is logfile.log. SPDEBUGDIR either points to a directory, in which case the logfile will be named %SPDEBUGDIR%\logfile.log, or points to a file, in which case the logfile will be named %SPDEBUGDIR%.
- No log information is written, if the file logfile.log cannot be created, e. g. if the specified path does not exist.
- Default trace level is 0.
- The logfile will be created, if it does not exist, all logs are appended.
- Always include a logfile with SPDEBUG set to 5, when sending a incident (bug) report to the SignWare contact address.
Please see ReleaseNotes.html for details on version history.