Delphi PDFXEdit_TLB.pas file won't compile

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Delphi PDFXEdit_TLB.pas file won't compile

Post by jeffp »

With your .357 build released yesterday, the PDFXEdit_TLB.pas file generated by Delphi from your PDFXEditCore.x86.dll does not compile. This has never happened before.

The compiler complains of an "Illegal type in OLE automateion section: 'PXC_3DMatrix4x4'

It happens on line 2741 with the procedure OnCameraEvent

For now I'm using the old PDFXEdit_TLB.pas file generated from your previous .356 build and it seems to work. But it makes me a bit nervous.

See attached TLB file.
PDFXEdit_TLB.zip
(218.2 KiB) Downloaded 58 times
PDFXEdit_TLB.zip
(218.2 KiB) Downloaded 58 times
--Jeff
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Delphi PDFXEdit_TLB.pas file won't compile

Post by zarkogajic »

Hi Support,

+1 to confirm this.

Can you have your Delphi guy take a look ?

-žarko
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Delphi PDFXEdit_TLB.pas file won't compile

Post by John - Tracker Supp »

I'm afraid we do not and have not had a Delphi team member for some years - additionally I am afraid like many suppliers of toolkits as its sometime since Delphi was a development environment sold and supported by its author's we no longer are able to offer Delphi compatibility as a matter of course.

Please revert to an earlier build that did work for you without issue and ensure that you maintain a local copy archived for your use.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Delphi PDFXEdit_TLB.pas file won't compile

Post by zarkogajic »

Hi John,
John - Tracker Supp wrote: Fri Oct 22, 2021 4:24 pm .. its sometime since Delphi was a development environment sold and supported by its author's ....
I'm not sure what do you mean by this?

Delphi has regular updates by Embarcadero - as regular as Visual Studio by MS.

https://www.embarcadero.com/products/rad-studio/whats-new-in-11-alexandria

p.s.
Some months ago, when there was a "Delphi" issue with SDK - Alex said he will check with "your Delphi guy". Example:
https://forum.pdf-xchange.com/viewtopic.php?f=66&t=33514&p=138877&hilit=Delphi+guy#p138455

-žatko
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Delphi PDFXEdit_TLB.pas file won't compile

Post by zarkogajic »

Hi JeffP,
jeffp wrote: Wed Oct 20, 2021 4:54 pm ... The compiler complains of an "Illegal type in OLE automateion section: 'PXC_3DMatrix4x4'...
In the generated "PDFXEdit_TLB.pas, inside "IPXV_Annot3DCallbackDisp = dispinterface", change the declaration of the viewMatrix parameter in OnCameraEvent to: OleVariant:

Code: Select all

    procedure OnCameraEvent(const pContext: IPXV_Annot3DContext; const pView: IUnknown;
                            nCurTool: Integer; nBinding: PXC_3DProjScaleType;
                            nProjType: PXC_3DProjType; nFar: Double; nNear: Double; nFOV: Double;
                            nCO: Double; nViewPlaneSize: Double; var viewMatrix: {NOT_OLEAUTO(PXC_3DMatrix4x4)}OleVariant;
                            const pViewName: WideString); dispid 1610743816;
The unit will compile and you can use it.

Note that you already have such constructs throughout the unit when declaring a "dispinterface" (like when Pointer is a data type, also changed to OleVariant).

The thing is that some types are not allowed in the 'automated' section and the .pas for TLB generator does it correctly by using OleVariant where such types are used, except in this case this time.

Some info:

On dispinterface:
https://www.oreilly.com/library/view/delphi-in-a/1565926595/re67.html
On that error:
https://docwiki.embarcadero.com/RADStudio/Alexandria/en/E2176_Illegal_type_in_OLE_automation_section:_%27%25s%27_(Delphi)
On OLE data types:
https://www.delphipower.xyz/guide_8/ole_data_types.html

HTH.

-žarko
Last edited by zarkogajic on Sat Oct 23, 2021 11:41 am, edited 1 time in total.
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Delphi PDFXEdit_TLB.pas file won't compile

Post by John - Tracker Supp »

I'm afraid Alex was 'hoping' he could find a team member who had historically used Delphi - but there has been no one here with Delphi experience for many, many years.

Additionally I should have stated more accurately that once Borland was no longer involved directly or through its subsidiary's - we were no longer actively able to support Delphi as we had no access to assistance and information ourselves.

We may have tried through others to provide information from time to time as we were able through our own staff or a few clients who were happy to assist - but no longer I am afraid.

Further as you will be aware we no longer market our SDK's actively - though we are providing existing clients with updates etc and a very few new clients who approach us and we vet carefully and will continue to do so to - but we those clients must be able to largely support themselves as we can only provide MS Visual Studio based tools support and then only for those tools that are current and/or we have experience ourselves with.

I regret therefore we have no ability to track and resolve this issue as we have no access to Delphi tools or experience ourselves.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Delphi PDFXEdit_TLB.pas file won't compile

Post by zarkogajic »

Hi John,

I undestand what you trying to say.

Note however that Delphi is not Borland from 2008. That's 12+ years.

Anyhow, this issue is fixed/solved as you can see from my previous post in this topic.


Also, btw:
... a few clients who were happy to assist...
I am :) QED.

-žarko
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Delphi PDFXEdit_TLB.pas file won't compile

Post by John - Tracker Supp »

I am pleased you were able to resolve it.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
Post Reply