x64 build

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

cyndichatman
User
Posts: 6
Joined: Tue Mar 06, 2012 6:20 pm

x64 build

Post by cyndichatman »

When you install the SDK, it seems to automatically register the 32 bit version of the active x controls. I have to build my project as x64. I unregistered the 32 bit controls, then went into the bin.x64 directory and ran the following

pdfxcview.exe /regserver
regsvr32 pdfxcviewax.dll

But the activeX controls will not show up in my VS toolbox. I am running VS 2010. I also tried to manually browse to add them, and I get the message "Self-registration for ..... PDFXCviewAx.dll failed"

Will the controls work in a x64 build?
Walter-Tracker Supp
User
Posts: 381
Joined: Mon Jun 13, 2011 5:10 pm

Re: x64 build

Post by Walter-Tracker Supp »

Did you run regsvr32 with administrative privileges? What message was returned when you ran it?

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

Re: x64 build

Post by Vasyl - PDF-XChange »

But the activeX controls will not show up in my VS toolbox. I am running VS 2010.
Possible reason: your VS 2010 is 32-bit application. In this case you must register PDFXCviewAx.dll 32-bit also. Look to SDK-Help:
for 64-bit and 32-bit clients both:
PDFXCview.exe(64) /RegServer (the PDFXCview.tbl(32) should be in the same folder as PDFXCview.exe(64))
regsvr32 PDFXCviewAx.dll(32) /s
regsvr32 PDFXCviewAx.dll(64) /s

After this you will be able to work with our ActiveX Control in VS 2010.
But your:
pdfxcview.exe /regserver // x64 exe-server
regsvr32 pdfxcviewax.dll // x64 dll-server
- still enough for true x64 clients..

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.
cyndichatman
User
Posts: 6
Joined: Tue Mar 06, 2012 6:20 pm

Re: x64 build

Post by cyndichatman »

yes, I did it w/o the s option (for silent) and got that it succeeded.

if i don't want to use the activeX, but just the simple DLL, pdfview.dll, do I need to register?
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: x64 build

Post by John - Tracker Supp »

Hi,

The Simple DLL version does not require registering - but do understand that the funtionality offered is very, very different ...
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
cyndichatman
User
Posts: 6
Joined: Tue Mar 06, 2012 6:20 pm

Re: x64 build

Post by cyndichatman »

That is ok on the simple. all I need to be able to do is display a PDF. But, how do I get the pdf viewer to show up in my mailbox. The help does not describe what I need to browse to or add as a reference. I can't figure out how to get the viewer control on my form
cyndichatman
User
Posts: 6
Joined: Tue Mar 06, 2012 6:20 pm

Re: x64 build

Post by cyndichatman »

i meant toolbox, not mailbox :D
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: x64 build

Post by Vasyl - PDF-XChange »

Your VS 2010 is 32-bit application - the registration x64-version only of our Active SDK isn't enough for it...
Please look to my previous post above.
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.
cyndichatman
User
Posts: 6
Joined: Tue Mar 06, 2012 6:20 pm

Re: x64 build

Post by cyndichatman »

I tried that, still no luck. I get a message about "failed to create component AxHost. System.Reflection.ReflectionTypeLoadException. Unable to load..."

But, if simpler I would much rather use the simple DLL method. I just don't know how to put the control on my form.
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: x64 build

Post by John - Tracker Supp »

Hi,

There is an example that should help in the SDK install folder - examples sub folder - if your still having problems after reviewing that - then please come back.
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
cyndichatman
User
Posts: 6
Joined: Tue Mar 06, 2012 6:20 pm

Re: x64 build

Post by cyndichatman »

If it is View, then I have been looking at that example for a few hours. In the sample, viewer control is not in the toolbox and I cannot make it go into the toolbox. So, I cannot drag from the toolbox to the form in the sample nor in my application.
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: x64 build

Post by John - Tracker Supp »

I cannot help but think you are NOT accessing the correct examples ....

You dont say specifically whether you are using VB/C#/C++ etc - but do note the Simple DLL Viewer is not an ActiveX and not added to your control as a form ...
But, if simpler I would much rather use the simple DLL method. I just don't know how to put the control on my form.
Our Simple Viewer DLL SDK is not an ActiveX Control. It is an API for the drawing of pdf-pages - so you cannot place it on your control as a form.

You must create your own control for viewing of the pdf and implement OnPaint() which uses our Simple DLL API. Look to our examples for Simple Viewer DLL SDK as appropriate for the specific tool you are using (e.g VB etc) in the examples folder specific to your tool - for example ;

for VB the default installation folder would be under the folder tree ... (if you have not modified) ;

\Examples\VBExamples

etc



...
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