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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - mode used in powerbuilder 10.5 help?
  FAQ FAQ  Forum Search   Register Register  Login Login

mode used in powerbuilder 10.5 help?

 Post Reply Post Reply
Author
Message
djcamus View Drop Down
Beginner
Beginner


Joined: 21 Mar 12
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote djcamus Quote  Post ReplyReply Direct Link To This Post Topic: mode used in powerbuilder 10.5 help?
    Posted: 21 Mar 12 at 9:44PM
I need to test this dll but I can not be unlocked from the development environment, import the support functions as global functions outside (QuickPDFDLL0813.inc) and am using this code:

example
long InstanceID
  InstanceID = QuickPDFCreateLibrary()
  if QuickPDFUnlockKey(InstanceID, "XXXXXXXXXXXXXXXXX") = 1 then // always return false
     QuickPDFDrawText(InstanceID, 100, 500, "Hello world")
    QuickPDFSaveToFile(InstanceID, "C:\Docs\cristian2.pdf")
end if
  QuickPDFReleaseLibrary(InstanceID)
 


i need your help, please!!!




Edited by djcamus - 21 Mar 12 at 10:11PM
Back to Top
Wheeley View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Oct 05
Location: United States
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wheeley Quote  Post ReplyReply Direct Link To This Post Posted: 22 Mar 12 at 2:57AM
Version 8.13 uses natively unicode DLL calls. So when you declare your external functions you need to use a suffix depending on the string type you want to use. I don't remember if the internal strings in Powerbuilder 10.5 are ascii or unicode. So if they are acsii, then you functions declarations should be:
QuickPDFCreateLibraryA
QuickPDFUnlockKeyA
...
Now if the internal strings are unicode the declarations are:
QuickPDFCreateLibrary
QuickPDFUnlockKey
...
Hope this helps
Wheeley

Back to Top
djcamus View Drop Down
Beginner
Beginner


Joined: 21 Mar 12
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote djcamus Quote  Post ReplyReply Direct Link To This Post Posted: 23 Mar 12 at 2:13AM
You are the best! Thank you.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store