API changes from UPDD 6 to UPDD 7
The UPDD V6 API carries forward to UPDD V7, and for most programs the move is a matter of rebuilding against the V7 files. This document lists the changes a UPDD V6 API client must take into account. Conversion from the UPDD V5 API is not covered.
Summary of changes
| Area | UPDD V6 | UPDD V7 |
| Windows architecture | 32-bit API, installed in C:\Program Files (x86)\UPDD | 64-bit API, installed in C:\Program Files\UPDD; a 32-bit build of the V7 API is in C:\Program Files\UPDD\v6 |
| Qt | Qt 5 | Qt 6 (the 32-bit build in \v6 uses Qt 5) |
| macOS library | libupddapi.1.0.0.dylib | libupddapi.7.0.0.dylib in /Library/Application Support/UPDD, linked as /usr/local/lib/libupddapi.7.0.0.dylib, libupddapi.7.0.dylib and libupddapi.7.dylib |
| Linux library | upddapi.so in /opt/updd/api | libupddapi.so.7.0.0 in /opt/updd/usrlib, linked as libupddapi.so.7.0, libupddapi.so.7 and libupddapi.so |
| Callback context | unsigned long | unsigned long long on 64-bit builds |
| Toolbars | Device settings toolbar.<index>.*, managed with the settings API | Monitor based, identified by a handle and managed with the toolbar API |
Files, architecture and Qt
UPDD V7 on Windows is a 64-bit installation in C:\Program Files\UPDD. The 64-bit API files are upddapi.h and upddapi.lib in C:\Program Files\UPDD\api and upddapi.dll in C:\Program Files\UPDD, built with Qt 6. A 32-bit build of the same V7 API (upddapi.h, upddapi.lib, upddapi.dll, built with Qt 5) is installed in C:\Program Files\UPDD\v6 for 32-bit client programs.
A Qt client application must be built against the same major Qt version as the API it uses; see Qt application considerations. The complete list of files and locations is in API file locations.
Callback signature
The UPDD V6 header declares the callback context parameter as unsigned long. In the V7 header it is unsigned long long on 64-bit builds, which includes all UPDD V7 builds on Windows and all macOS builds:
void TBCALL MyCallback(unsigned long long context, _PointerEvent* ev);
The context argument of TBApiRegisterEvent changes in the same way. On Windows, where unsigned long is 32-bit, code using the V6 declaration does not compile against the V7 header.
_EventConfiguration is an obsolescent alias of _EventTypeConfiguration, due to be removed: use _EventTypeConfiguration.
Toolbars
Prior to UPDD V7, toolbars were associated with a device and held in device settings of the form toolbar.<index>.*. With UPDD V7, toolbars are associated with a monitor and are managed through a dedicated toolbar API (TBApiAddToolbar, TBApiRemoveToolbar, TBApiGetRelativeToolbar, TBApiGetToolbarSetting, TBApiGetToolbarSettingAsInt, TBApiSetToolbarSetting, TBApiEnableToolbars, TBApiDisableToolbars and the toolbar cell action functions), using handles that do not change. The _toolbar event also carries the latched state of the cell in the field on. See Toolbars in Device control from the API.
For review
Scope: the outline limits this topic to V6 to V7. The V5 to V6 conversion guide (renamed functions, _ReadDataType to _EventType, TBApiInit / TBApiTerminate removal, setting renames, tbupdd.ini to updd.db) was not carried. The parts of it that still describe the V6 / V7 API (TBApiOpen is asynchronous and how to wait for it, which calls work before TBApiOpen, TBApiGetLastError, TBApiEnableApiTrace, TBApiIsDeviceConnected, stylus numbers as sent by the controller) now live in Connecting to the driver and receiving events. "Calls to the set functions are effective immediately" moved to the Settings API. Please confirm the V5 guide can go, or say where V5 material should live.
The retired page of UPDD V6 64-bit Windows API downloads (6.0.365, 6.0.565) is replaced by this topic; nothing was taken from it.