Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Linux shared object with Delphi - DPLUnlockKey |
Post Reply ![]() |
Author | |
Coogara ![]() Beginner ![]() Joined: 06 Jan 19 Location: Australia Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() Posted: 24 Apr 19 at 2:46AM |
I'm having trouble getting going with calling a shared object from Delphi on Linux for the DPLUnlockKey method. Granted it could be the license key, but it was obtained today with our purchase of the Linux license. Maybe someone could compare with what they're doing on Linux. I'm loading my library dynamically with LoadLibrary, after which I GetProcAddress. So far (error checking omitted):
Lirbary loads okay. InstanceID is non-zero. R (returned by DPLUnlockKey) is always 0. I've tried various syntax on the method type declaration with no success. Thoughts? Any ideas?
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Coogar, the unlock-function needs a wide char entry for the key-value - perhaps that's the problem?
https://www.debenu.com/docs/pdf_library_reference/UnlockKey.php If that's not the problem then perhaps your license key isn't valid anymore (30 days)? I think you didn't find the official publisher pages for the first steps? Here they are: https://www.debenu.com/products/development/debenu-pdf-library/getting-started/ and here: https://www.debenu.com/products/development/debenu-pdf-library/help/samples/ Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
![]() |
|
Coogara ![]() Beginner ![]() Joined: 06 Jan 19 Location: Australia Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Thanks for the links. I had, in fact, seen the sample code you mention but had not made any headway with them for the Delphi/Linux combination using WideString. As I could not get this to work with a wide string, I opted to change the declaration of the method to use AnsiString, and reference the ANSI version of the method:
The DPLUnlockKey now returns 1 instead of zero. I will make further attempts to get this to work with a wide string.
Edited by Coogara - 24 Apr 19 at 7:38PM |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store