cannot compile CExAPI example

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
Paul Guthrie
User
Posts: 8
Joined: Fri Aug 13, 2004 7:18 am

cannot compile CExAPI example

Post by Paul Guthrie »

I am trying to compile CExAPI using Visual Studio 2008 Professional Edition, but get the error:

f:\pdf_pro_4_sdk\examples\apiexamples\cexamples\cexapi\stdafx.h(16) : fatal error C1083: Cannot open include file: 'atlapp.h': No such file or directory

I have searched my VS 2008 installation as well as my whole machine but do not have any file ''atlapp.h''

I expect ''atlapp.h'' is something to do with ActiveTemplate Library. I am not familiar with using ATL, and what i need to do to activate it.

Any help would be appreciated.

thanks,
Paul G
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: cannot compile CExAPI example

Post by Tracker Supp-Stefan »

Hello Paul,

atlap.h is part of the windows template library which you can download for free:
http://wtl.sourceforge.net/

Best,
Stefan
Paul Guthrie
User
Posts: 8
Joined: Fri Aug 13, 2004 7:18 am

Re: cannot compile CExAPI example

Post by Paul Guthrie »

Hi Stefan,

Ok, thanks for that, it did the trick. :)

Another question, I don't kow whether you know the answer.

I am running Win 7 64. I got the compile error in reference to the line in stdafx.h

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

"error C3501: there is no typelib registered for ProgID 'PXCComLib.CPXCControlEx'"

Following advice given elsewhere in this forum I replaced the line with:

#import "libid:AAF4C859-3ACD-4D27-88E6-B163C8D81BEC" version("1.0") rename_namespace("PXC"), named_guids

After doing the above, the example compiles, and seems to run ok, although i get these warning messages:

..\stdafx.h(37) : warning C4192: automatically excluding 'IStream' while importing type library 'AAF4C859-3ACD-4D27-88E6-B163C8D81BEC'
..\stdafx.h(37) : warning C4192: automatically excluding 'ISequentialStream' while importing type library 'AAF4C859-3ACD-4D27-88E6-B163C8D81BEC'
..\stdafx.h(37) : warning C4192: automatically excluding '_LARGE_INTEGER' while importing type library 'AAF4C859-3ACD-4D27-88E6-B163C8D81BEC'
..\stdafx.h(37) : warning C4192: automatically excluding '_ULARGE_INTEGER' while importing type library 'AAF4C859-3ACD-4D27-88E6-B163C8D81BEC'
..\stdafx.h(37) : warning C4192: automatically excluding 'tagSTATSTG' while importing type library 'AAF4C859-3ACD-4D27-88E6-B163C8D81BEC'
..\stdafx.h(37) : warning C4192: automatically excluding '_FILETIME' while importing type library 'AAF4C859-3ACD-4D27-88E6-B163C8D81BEC'

Are these warnings anything to be concerned about?

Thanks,
Paul G
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: cannot compile CExAPI example

Post by Ivan - Tracker Software »

Are these warnings anything to be concerned about?
No, just ignore them.
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.
Paul Guthrie
User
Posts: 8
Joined: Fri Aug 13, 2004 7:18 am

Re: cannot compile CExAPI example

Post by Paul Guthrie »

ok thanks for that :)
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6837
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: cannot compile CExAPI example

Post by Paul - Tracker Supp »

:)
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Post Reply