Creating UDX source files in C++

You can use any text editor to create the C++ source files for a UDX. The file name must have the extension .cpp. You might want to create a directory such as /home/udx_files as your area for the source code files.

Your C++ file must include the udxinc.h header file, which contains the required declarations for UDXs.

#include "udxinc.h"
Ensure that you declare any of the standard C++ library header files that your function might require. For example:
#include "udxinc.h"
#include <string.h>
Note: If a UDX specifies a shared library as a dependency, and if that shared library is not available when the UDX is registered, the UDX must be re-registered sometime after the missing dependent shared library becomes available.
The classes and functions for a UDX are defined in a namespace called nz::udx_ver2. Your C++ program must reference the correct namespace. For example:
#include "udxinc.h"
#include <string.h>
using namespace nz::udx_ver2;