ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to use WPTools with C++ XE8?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

dcs

USA
26 Posts

Posted - May 29 2017 :  17:25:59  Show Profile  Reply
What do I have to do to use WPTools with C++ XE8?

Thanks,
M.

dcs

USA
26 Posts

Posted - May 29 2017 :  19:33:05  Show Profile  Reply
More info: I only need to load PDF files into a TImageEnMView.

Thanks!

HL
Go to Top of Page

xequte

38182 Posts

Posted - May 29 2017 :  21:24:46  Show Profile  Reply
Hi

Plesae take a look at the source for the MView_Demo\WPPDF_Multi.dpr demo which comes with WPTools. It should be easy enough to convert to C++.

Basically you need to:

- Add wpcubed_pdf_plugin to your uses clause

- Call this code. e.g. in your main FormCreate:

if TIEWPCubedPDF->Initialize then
TIEWPCubedPDF->RegisterPlugin;

- At the end of your main unit add:

{$I PDFLicense.INC}

initialization

glWPViewPDF_DLLName = WPViewPDF_DLLName;
glWPViewPDF_DLLName64 = WPViewPDF_DLLName64;
glWPViewPDF_LicName = WPViewPDF_LicName;
glWPViewPDF_LicKey = WPViewPDF_LicKey;
glWPViewPDF_LicCode = WPViewPDF_LicCode;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

dcs

USA
26 Posts

Posted - May 29 2017 :  21:43:28  Show Profile  Reply
Forgive me, but where is the uses clause in C++ XE8?

HL
Go to Top of Page

xequte

38182 Posts

Posted - May 30 2017 :  05:47:29  Show Profile  Reply
Hi

It would be:

#include "wpcubed_pdf_plugin.hpp"

However I've just realized that we do not include HPP files for wpcubed_pdf_plugin.pas (as it is a third party file), so you would need to generate one yourself.

We will try to include this in 7.0.1.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

dcs

USA
26 Posts

Posted - May 31 2017 :  18:18:03  Show Profile  Reply
1. Would you point me to an instruction on how to generate the hpp file?

2. When will the 7.0.1 be released?

HL
Go to Top of Page

xequte

38182 Posts

Posted - Jun 05 2017 :  06:39:45  Show Profile  Reply
Please find the hpp file attached...

attach/xequte/20176563941_WPTools_DelphiXE8.zip
6.2 KB

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

dcs

USA
26 Posts

Posted - Jun 05 2017 :  15:07:15  Show Profile  Reply
Thanks! I followed your instructions and got this error:

E2108 Improper use of typedef 'TIEWPCubedPDF'

Please advise.

HL
Go to Top of Page

wpsupport

Germany
7 Posts

Posted - Jun 06 2017 :  00:49:06  Show Profile  Reply
Did you try the syntaxIn C++ the code should more look like

if ( TIEWPCubedPDF->Initialize() )
{
TIEWPCubedPDF->RegisterPlugin();
}

You can also hard code this lines with your license data:

glWPViewPDF_DLLName = WPViewPDF_DLLName;
glWPViewPDF_DLLName64 = WPViewPDF_DLLName64;
glWPViewPDF_LicName = WPViewPDF_LicName;
glWPViewPDF_LicKey = WPViewPDF_LicKey;
glWPViewPDF_LicCode = WPViewPDF_LicCode;
I hope this helps,

Julian

WPCubed Support
Go to Top of Page

dcs

USA
26 Posts

Posted - Jun 06 2017 :  17:23:12  Show Profile  Reply
This is exactly what I tried:

if ( TIEWPCubedPDF->Initialize() )
{
TIEWPCubedPDF->RegisterPlugin();
}

and got the compile error.

I have no ideas what's wrong.

HL
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: