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
cannot compile CExAPI example
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
- Tracker Supp-Stefan
- Site Admin
- Posts: 17824
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: cannot compile CExAPI example
Hello Paul,
atlap.h is part of the windows template library which you can download for free:
http://wtl.sourceforge.net/
Best,
Stefan
atlap.h is part of the windows template library which you can download for free:
http://wtl.sourceforge.net/
Best,
Stefan
-
- User
- Posts: 8
- Joined: Fri Aug 13, 2004 7:18 am
Re: cannot compile CExAPI example
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
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
- 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
No, just ignore them.Are these warnings anything to be concerned about?
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.
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.
-
- User
- Posts: 8
- Joined: Fri Aug 13, 2004 7:18 am
Re: cannot compile CExAPI example
ok thanks for that
- Paul - Tracker Supp
- Site Admin
- Posts: 6837
- Joined: Wed Mar 25, 2009 10:37 pm
- Location: Chemainus, Canada
- Contact:
Re: cannot compile CExAPI example
Best regards
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com