Registration for Viewer Control SDK

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

landy.lan
User
Posts: 3
Joined: Mon Dec 19, 2011 3:43 am

Registration for Viewer Control SDK

Post by landy.lan »

Hi, I am working on PDF View customization for customer, while running this Control I got the error message
"Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) ". I tried to manually register both files PDFXCview.exe and PDFXCviewAx.dll, while I still get the same error. But I install "pdfvSDKFull.exe " in my machine, I can load and run my program.

Below is my development environment

Windows 7 64bit
Visual stuido 2010
The program I am building program is 32bit, I also have built my program(32bit) in 32bit OS environment, which also cannot run in 64bit with manually registration, while can run using the "pdfvSDKFull.exe".

Manually registration command, I referred to the documentation as below
for 32-bit clients:
PDFXCview.exe(32) /RegServer
regsvr32 PDFXCviewAx.dll(32) /s
or:
PDFXCview.exe(64) /RegServer (the PDFXCview.tbl(32) should be in the same
folder as PDFXCview.exe(64))
regsvr32 PDFXCviewAx.dll(32) /s

Do you have any suggestion on this problems, thanks a lot.

Landy
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Registration for Viewer Control SDK

Post by Vasyl - PDF-XChange »

Hi, Landy.

Note - you must have admin rights for it on the target machine.
To check it - call regsvr32 PDFXCviewAx.dll but without '-s'(silent mode) key. In this case regsvr32 utility can display any error message...

Also - you may create .bat file with all com-registration commands and run it by "Run as administrator" feature from context menu.

HTH.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
landy.lan
User
Posts: 3
Joined: Mon Dec 19, 2011 3:43 am

Re: Registration for Viewer Control SDK

Post by landy.lan »

Hi HTH,

Yes, I tried the methods(one is console mode,one is bat mode) as you mentioned, I can register the dll without /s as Administrator of OS, while I still have the same problem.

If I register the dll without /s as normal user, an error message will be prompted on registration.

Thanks
Landy
landy.lan
User
Posts: 3
Joined: Mon Dec 19, 2011 3:43 am

Re: Registration for Viewer Control SDK

Post by landy.lan »

Hi HTH,

Thanks a lot, the problem has been solved after I registered 64bit dll.

Thanks
Landy
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19876
Joined: Mon Jan 12, 2009 8:07 am

Re: Registration for Viewer Control SDK

Post by Stefan - PDF-XChange »

:)