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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - C++ Builder 6 and Quick PDF Lite
  FAQ FAQ  Forum Search   Register Register  Login Login

C++ Builder 6 and Quick PDF Lite

 Post Reply Post Reply
Author
Message
graphman View Drop Down
Beginner
Beginner


Joined: 22 Jun 11
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote graphman Quote  Post ReplyReply Direct Link To This Post Topic: C++ Builder 6 and Quick PDF Lite
    Posted: 22 Jun 11 at 9:17PM
How to install and use it in C++ Builder 6.

Thanks.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 23 Jun 11 at 9:22AM
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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 01 Jul 11 at 2:35PM
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

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 09 Jul 11 at 12:37PM
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. 
Back to Top
Oliver View Drop Down
Beginner
Beginner


Joined: 02 Jun 13
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oliver Quote  Post ReplyReply Direct Link To This Post Posted: 02 Jun 13 at 3:50AM
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
Back to Top
Oliver View Drop Down
Beginner
Beginner


Joined: 02 Jun 13
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oliver Quote  Post ReplyReply Direct Link To This Post Posted: 03 Jun 13 at 1:06AM
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store