Re: PMTicketRef and Frameworks
Re: PMTicketRef and Frameworks
- Subject: Re: PMTicketRef and Frameworks
- From: Bryan Pietrzak <email@hidden>
- Date: Fri, 9 Jul 2004 14:14:12 -0500
OK, I think my problem is pretty simple.
PMTicket.h is in PrintCore. PrintCore is in ApplicationServices.
I assumed that if I did a #include
<ApplicationServices/ApplicationService.h> that ALL headers in the
umbrella framework would be included. Not true. ApplicationServices.h
does a #include <PrintCore/PrintCore.h> but PrintCore.h does not
include PMTicket.h
So, I tried #include <PrintCore/PMTicket.h> but that got me an error:
"No such file or directory" during compile.
So, I tried #include <ApplicationServices/PrintCore/PMTicket.h> but
that got me an error: "No such file or directory" during compile.
So how do I include a header from a sub-framework within an umbrella
framework like ApplicationServices? I ended up making this all work by
directly adding the PrintCore framework to my app, but that seems very
wrong since it's inside ApplicationServices.
Bryan
On Jul 8, 2004, at 4:34 PM, Bryan Pietrzak wrote:
I'm trying to move our application from CW to Xcode and I'm getting an
error:
CPrintDialog.h:49: error: type specifier omitted for parameter
`PMTicketRef'
...
In file included from
/Users/bpietrz/Projects/CVS/DexGraphics50/source/Printing/
CPrintDialog.cpp:18:
/Users/bpietrz/Projects/CVS/DexGraphics50/source/Printing/
CPrintDialog.h:49: error: type specifier omitted for parameter
`PMTicketRef'
The definition (it's in a C++ file)
static OSStatus GetTicket (PMPrintSession session, CFStringRef
ticketID, PMTicketRef* ticketPtr);
PMTickets are in ApplicationServices/ApplicationServices.h
So I've added ApplicationServices.framework to this target. My .pch
file has (among other things)
#include <Carbon/Carbon.h>
#include <QuickTime/QuickTime.h>
#include <ApplicationServices/ApplicationServices.h>
I have Precompile Prefix Header checked on in the build styles.
Any ideas on what I'm doing wrong?
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.