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!
C++ Builder 6 and Quick PDF Lite |
Post Reply |
Author | |
graphman
Beginner Joined: 22 Jun 11 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 22 Jun 11 at 9:17PM |
How to install and use it in C++ Builder 6.
Thanks. |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
There is a Delphi-version (dcu), a dll and an activeX-version.
In your case i think dll or (better) activeX you should use.
How to use a dll in C++ Builder you'll know by your own.
All other stuff you'll find here:
Cheers and welcome here,
Ingo
|
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
QPL works perfectly fine in BCB6. Copy the QuickPDFDLL0725.cpp and .h file from the \QuickPDF\DLL\Import\CPlusPlus directory into you project directory. Also copy the QuickPDFDLL0725.DLL file to C:\WINDOWS\SYSTEM32 on 32bit or C:\Windows\SysWOW64 on 64 bit Windows or into the project directory where the compiled EXE file will reside. // In your include section ... #include "quickpdfdll0725.cpp" // Note this is the CPP file. QuickPDFDLL0725 QP("quickpdfdll0725.dll"); // A global. #include <string> using namespace std; __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { int InstanceID; string s = "<put your key here>"; if (QP.UnlockKey(s) != 1) MessageBox(Handle, "QPL License Key not valid", "Warning", MB_OK); } void __fastcall TForm1::Button1Click(TObject *Sender) { int ret = QP.LoadFromFile("Quick.pdf"); ... Enjoy, Andrew |
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
I didn't realise that you wanted to use the Lite version.
The Lite version only comes as an ActiveX control. So you will need modify the project to use the QuickPDFLite0725.cpp and .h files. You will also need to make sure the Active DLL is registered in windows with regsvr32. The constructor for QuickPDFList0725 does not need the DLL name as a parameter. With these few small changes it should work correctly. Let us know if you cannot get it working. It should be something like this // In your include section ... #include "QuickPDFLite0725.cpp" // Note this is the CPP file. QuickPDFLite0725 QP; // A global. #include <string> using namespace std; __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { int InstanceID; string s = "<put your key here>"; if (QP.UnlockKey(s) != 1) MessageBox(Handle, "QPL License Key not valid", "Warning", MB_OK); } void __fastcall TForm1::Button1Click(TObject *Sender) { int ret = QP.LoadFromFile("Quick.pdf"); ... Andrew.
|
|
Oliver
Beginner Joined: 02 Jun 13 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
I have tried those steps with version 9.14 with C++ Builder 6, but I get:
"Could not find a match for 'DebenuPDFLibraryDLL0914::DebenuPDFLibraryDLL0914(char *)'" on the following line in my code: DebenuPDFLibraryDLL0914 QP ("DebenuPDFLibraryDLL0914.dll"); From what I can tell by looking at the constructor, it needs a wstring type as a parameter. Not sure how to create a wstring. Thanks Oliver |
|
Oliver
Beginner Joined: 02 Jun 13 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
I finally figured this out on my own. Changing my code to this:
DebenuPDFLibraryDLL0914 QP (L"DebenuPDFLibraryDLL0914.dll"); worked (added 'L' before the string). Oliver PS: The "Getting started" for DLLs that is installed with version 9.14 is incorrect. It still references an InstanceID and all the function names start with "DPL" which also seems incorrect. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store