Have you downloaded one of the Integration Kits from their support page?
I was able to take a .dll file from the .NET version (I'm working in
.NET, though, which no doubt helps) and use a function which appears in
there to do the encoding. However, I'm trying to do something as simple as
you are and still failing thus far.