Print Page | Close Window

OpenEdge Progress

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=2130
Printed Date: 24 Dec 25 at 3:06AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: OpenEdge Progress
Posted By: thrash
Subject: OpenEdge Progress
Date Posted: 03 Feb 12 at 2:22PM

Hi, 

is it possible to use this great library in OpenEdge (vers. 10.2A) as EXTERNAL library?

I am trying to call functions from library but no chance.

&SCOP DLL 'QUICKPDFDLL.DLL'

PROCEDURE QuickPDFUnlockKey EXTERNAL {&DLL} :  
   DEF INPUT PARAM LicenceKey AS CHAR. 
   DEF RETURN PARAM iRetValue AS LONG.
END PROCEDURE.

DEF VAR i AS INT NO-UNDO.

RUN QuickPDFUnlockKey (INPUT <licence key>, OUTPUT i).
 

Any ideas? please.




Replies:
Posted By: AndrewC
Date Posted: 08 Feb 12 at 12:58AM
I assume you are using QPL 8.13 or 8.14.

Can you try the following

&SCOP DLL 'QUICKPDFDLL.DLL'

PROCEDURE QuickPDFUnlockKey EXTERNAL {&DLL} :  
   DEF INPUT PARAM LicenceKey AS CHAR. 
   DEF RETURN PARAM iRetValue AS LONG.
END PROCEDURE.

DEF VAR i AS INT NO-UNDO.

RUN QuickPDFUnlockKeyA (INPUT <licence key>, OUTPUT i).    // An A at the end of the file name.


QPL 8.xx versions use Unicode/ UTF-16 based strings for most functions.  Some development tools such as FoxPro don't have native support for Unicode strings.  Every QPL function that has a Unicode string as input or output now has a matching A function that accepts and returns 8 bit strings.

UnlockKey ->  UnlockKeyA
LoadFromFile -> LoadFromFileA
...




Posted By: thrash
Date Posted: 08 Feb 12 at 6:50AM

Thank you.

I trying to use QPL8.12 and older version 7.21.

I still cannot open the library. Do you know the OE Progress? 

I tried to open my own DLL library but same results: "Could not find the entrypoint <functionname>".

What do I wrong?



 





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