Print Page | Close Window

mode used in powerbuilder 10.5 help?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2196
Printed Date: 26 Jun 25 at 8:06PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: mode used in powerbuilder 10.5 help?
Posted By: djcamus
Subject: mode used in powerbuilder 10.5 help?
Date 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!!!





Replies:
Posted By: Wheeley
Date 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



Posted By: djcamus
Date Posted: 23 Mar 12 at 2:13AM
You are the best! Thank you.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk