fatal error importing progid: 'PXCComLib.CPXCControlEx'

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

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

Post Reply
nick.tucker
User
Posts: 20
Joined: Wed Jul 16, 2008 8:38 am

fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by nick.tucker »

Hi

I'm transferring my development environment onto a new workstation running Windows 8 and having installed the 'PDF-XChange 4 API Setup' (PDFXAPI4.EXE) and now cannot compile my project which compiles fine on the previous Windows 7 rig with the same API installed. The following errors are produced:

error C1103: fatal error importing progid: 'PXCComLib.CPXCControlEx'
error C3501: there is no typelib registered for ProgID 'PXCComLib.CPXCControlEx'

for the following C++ source line:

#import "progid:PXCComLib.CPXCControlEx" rename_namespace("PXC"), named_guids

I have used Sysinternals' Process Monitor which shows the new workstation is attempting to access registry key:

HKCU\Software\Classes\PXCComLib.CPXCControlEx

Which exists on the old rig but not the new one.

What am I doing wrong?
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3550
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by Ivan - Tracker Software »

Looks like it was registered only in HKLM part of the registry.

Please run
pdfSaver4.exe /RegServer

to register the COM server again.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
nick.tucker
User
Posts: 20
Joined: Wed Jul 16, 2008 8:38 am

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by nick.tucker »

Hi Ivan

Thanks for the reply, I've run

pdfSaver4.exe /RegServer

as suggested, from a command prompt run as administrator, i.e. elevated, but that has made no difference. I've also tried unelevated just in case and that makes no difference either.

The file version of pdfsaver4.exe is 4.0.201.0 if that helps - it's from a freshly downloaded copy of the PDF-XChange 4 API Toolkit.

Best Regards

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

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by John - Tracker Supp »

Hi,

Can you please try installing this installation and see if that helps;

https://www.pdf-xchange.com/PDFX4SA_sm.zip

Thanks
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
nick.tucker
User
Posts: 20
Joined: Wed Jul 16, 2008 8:38 am

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by nick.tucker »

Hi - I have tried installing the specified update and it still doesn't work.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17941
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by Tracker Supp-Stefan »

Hello Nick,

I've passed this topic to Ivan once again and have asked for his further advise. We will post back here when there are some further news.

Regards,
Stefan
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3550
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by Ivan - Tracker Software »

Can you please try import by libid instead of prodid?

Code: Select all

#import "libid:AAF4C859-3ACD-4D27-88E6-B163C8D81BEC" rename_namespace("PXC"), named_guids
It that doesn't help, I would like to have a remove session via TeamViewer to check on your computer why it is not registered properly.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
nick.tucker
User
Posts: 20
Joined: Wed Jul 16, 2008 8:38 am

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by nick.tucker »

#import by libid compiles, but is that the 'correct' form, or does #import by progid not working suggest something is not as it should be?

Also, using the libid form, I'm getting compiler warnings as below - obviously I can use a #pragma to suppress them, but that's also worrying:

view.h(25): warning C4192: automatically excluding '_FILETIME' while importing type library 'AAF4C859-3ACD-4D27-88E6-B163C8D81
BEC

Thanks for progress anyway!

Nick
User avatar
Roman - Tracker Supp
Site Admin
Posts: 306
Joined: Sun Nov 21, 2004 3:19 pm

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by Roman - Tracker Supp »

Hi Nick,

Assuming you are using MS Visual Studio as your dev environment, what is the version of your IDE?
that's also worrying:

view.h(25): warning C4192: automatically excluding '_FILETIME' while importing type library 'AAF4C859-3ACD-4D27-88E6-B163C8D81
This warning means the #import detected that _FILETIME identifier has been defined somewhere above in the compilation unit and therefore no need to generate its definition from the type library. You can override this default behavior with no_auto_exclude #import attribute. But doing so you will probably meet some issues while using imported interfaces because syntactically identical type definitions in different namespaces are treated as different types by the compiler.
nick.tucker
User
Posts: 20
Joined: Wed Jul 16, 2008 8:38 am

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by nick.tucker »

Hi Roman

I'm using Microsoft Visual Studio 2010 SP1

Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.5.51641 SP1Rel

Installed Version: Premium

Regards

Nick
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17941
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by Tracker Supp-Stefan »

Thanks for the extra details Nick!

I've passed that to Roman and he will post his further thoughts here a bit later.

Regards,
Stefan
User avatar
Roman - Tracker Supp
Site Admin
Posts: 306
Joined: Sun Nov 21, 2004 3:19 pm

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by Roman - Tracker Supp »

Thanks for the info, Nick.

Please verify that HKLM\Software\Classes\PXCComLib.CPXCControlEx registry key is present on your system.

As Ivan mentioned, it would be better to get remote access to your system and do live debugging. Site forum has too big lag to be used as an efficient debug channel. :)
nick.tucker
User
Posts: 20
Joined: Wed Jul 16, 2008 8:38 am

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by nick.tucker »

Hi Roman

I have just confirmed that HKLM\Software\Classes\PXCComLib.CPXCControlEx registry key is present on my system.

Remote access would be possible, just a question of how to co-ordinate given I'm in the UK.

Many thanks

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

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by John - Tracker Supp »

Roman is based in our European office so is just a couple of hours ahead of you - please suggest a couple of dates/times when this would be convenient ..

Please email this to support@pdf-xchange.com - for the attention of Roman with a link back to this forum thread and we will try and ensure that this is accomdated.

Thanks
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
nick.tucker
User
Posts: 20
Joined: Wed Jul 16, 2008 8:38 am

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by nick.tucker »

Will do, although I am about to take a week's holiday so let's defer this until I get back.

Thanks

Nick
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17941
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: fatal error importing progid: 'PXCComLib.CPXCControlEx'

Post by Tracker Supp-Stefan »

Hi Nick,

Sure - whenever you can. Send it to us and we will act further!

Regards,
Stefan
Post Reply