Cannot compile PXCSample

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics.

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Support Staff, moderators

Post Reply
beco
User
Posts: 3
Joined: Tue Aug 01, 2006 10:27 am

Cannot compile PXCSample

Post by beco » Tue Aug 01, 2006 12:45 pm

I've downloaded "PDF-XChange SDK Pro" demo version. I tried to compile PXCSample but an error occurs in pxc_c.h:

Compiling...
stdafx.cpp
c:\program files\tracker software\pdf-xchange pro 3 sdk\examples\include\pxc_c.h(302) : error C2061: syntax error : identifier 'PCCERT_CONTEXT'
c:\program files\tracker software\pdf-xchange pro 3 sdk\examples\include\pxc_c.h(307) : error C2061: syntax error : identifier 'PCCERT_CONTEXT'
Error executing cl.exe.

I'm using VC++ 6.0 with SP4 and WTL 7.5.

What could be the problem?

Thx

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Wed Aug 02, 2006 10:24 am

Hi,

please add

#include <windows.h>

or

#include <wincrypt.h>

before the line

#include "pxc_c.h"

This should resolve the issue :)
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

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Wed Aug 02, 2006 10:33 am

Actually - the above advice may not be sufficient :

It appears you will need to use the MS Platform SDK with updated libraries and header files for VC++.

or, you do not plan to use digital signatures, you can insert following line into stdafx.h


typedef const void* PCCERT_CONTEXT;

before the line:

#include "pxc_c.h"

or you should use the newer SP for VC++ 6.0

There is currently available a Service pack which it appears you do not have.

Hope that helps.
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