Print Page | Close Window

Use DLL in FoxPro

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=2182
Printed Date: 26 Jun 25 at 12:41PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Use DLL in FoxPro
Posted By: Klaus.Hentschel
Subject: Use DLL in FoxPro
Date Posted: 08 Mar 12 at 9:41AM
Hello,
 
i try to use the DLL from QPDF 8.13 in FoxPro. After running the QuickPDFDLL0813.prg to DECLARE all necessary Functions i call the following:
 
lnID = QuickPDFCreateLibrary()
lnReturn = QuickPDFUnlockKey(lnID, "Licence Key")
 
FoxPro stops after the "Unlock" with the Message "Syntax Error". What is going wrong here? I read here in the Forum something regarding UNICODE and FoxPro...
 
With the AX Version i have no problems but i want to use the DLL Version because of no Client Install.
Has anybody an idea what i can do?
 
Thanks in advance
 
Klaus

 




Replies:
Posted By: AndrewC
Date Posted: 12 Mar 12 at 1:12PM

Can you try using   QuickPDFUnlockKeyA(InID, "Licence key"); 

All the the QPL functions that use a string now have a matching "A" function that accepts a standard 8bit string.

  LoadFromFileA
  RenderPageToStringA 
  ...
  ...

I am pretty sure this was added to the 8.13 Final release.

Andrew.


Posted By: Klaus.Hentschel
Date Posted: 12 Mar 12 at 5:24PM
it seems to work with the Function QuickPDFUnlockKeyA(...
 
thank you Andrew that you point me on this ;-)
 
Klaus



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