Print Page | Close Window

Starting with Hello World

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=1437
Printed Date: 16 Dec 25 at 9:14PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Starting with Hello World
Posted By: mulfycrowh
Subject: Starting with Hello World
Date Posted: 04 May 10 at 6:01PM
Hello Everybody !
 
I downloaded the trial version and am trying to understand the "Hello World" sample (DLL).
I am starting debugging under Visual Studio and I am getting an unhandled exception when executing :

result = QuickPDFLibraryVersion(instanceID);

Could you help me ?

 




Replies:
Posted By: Jack
Date Posted: 04 May 10 at 7:16PM
It might be helpful to look at the complete code you are using before you get to the point where you get the error.  I use the Delphi version so I don't know if you need to create the QuickPDF object that you are calling, but that is a possibility.  I don't think you will get a valid result if you don't use the unlock procedure before you call any functions.


Posted By: mulfycrowh
Date Posted: 04 May 10 at 7:59PM
We might think that the sample would be ready to use ...


Posted By: mulfycrowh
Date Posted: 04 May 10 at 8:05PM
The code is :
 

// Declare and load Quick PDF Library DLL

QuickPDFDLL0717 QP("C:\\Program Files\\Quick PDF Library\DLL\\QuickPDFDLL0717.dll");

// Library key

// std::string strLicenseKey = "INSERT LICENSE KEY HERE";

std::string strLicenseKey = "Your_Key";

// PDF output filename

std::string strFileName = "hello-world.pdf";

// Display message containing the library version

std::string strMessage = ("Quick PDF Library Hello World sample");

strMessage.append("\n");

strMessage.append("Library version: " + QP.LibraryVersion());



Posted By: Paddy
Date Posted: 04 May 10 at 8:27PM
Make sure that you actually have version 7.17 installed at "C:\\Program Files\\Quick PDF Library\DLL\\QuickPDFDLL0717.dll" and not version 7.18 or 7.19. Update your code based on which version you have installed. My guess is that the error is the result of the sample using a different version to the one you have installed.


Posted By: mulfycrowh
Date Posted: 04 May 10 at 10:04PM
You're right. I installed the version 7.18



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