T O P I C R E V I E W |
dcs |
Posted - May 29 2017 : 17:25:59 What do I have to do to use WPTools with C++ XE8?
Thanks, M. |
9 L A T E S T R E P L I E S (Newest First) |
dcs |
Posted - Jun 06 2017 : 17:23:12 This is exactly what I tried:
if ( TIEWPCubedPDF->Initialize() ) { TIEWPCubedPDF->RegisterPlugin(); }
and got the compile error.
I have no ideas what's wrong.
HL |
wpsupport |
Posted - Jun 06 2017 : 00:49:06 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 |
dcs |
Posted - Jun 05 2017 : 15:07:15 Thanks! I followed your instructions and got this error:
E2108 Improper use of typedef 'TIEWPCubedPDF'
Please advise.
HL |
xequte |
Posted - Jun 05 2017 : 06:39:45 Please find the hpp file attached...
attach/xequte/20176563941_WPTools_DelphiXE8.zip 6.2 KB
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
dcs |
Posted - May 31 2017 : 18:18:03 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 |
xequte |
Posted - May 30 2017 : 05:47:29 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
|
dcs |
Posted - May 29 2017 : 21:43:28 Forgive me, but where is the uses clause in C++ XE8?
HL |
xequte |
Posted - May 29 2017 : 21:24:46 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
|
dcs |
Posted - May 29 2017 : 19:33:05 More info: I only need to load PDF files into a TImageEnMView.
Thanks!
HL |