Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Carbon equivalent of OTScheduleSystemTask



Error : illegal implicit conversion from 'OpaqueOTProcessProcPtr *' to
'pascal void (*)(void *)'

However, I can't find any header which defines OpaqueOTProcessProcPtr. How do I properly declare myDeferredUPP?


The type "OpaqueOTProcessProcPtr" is being generated by the macro TVECTOR_UPP_TYPE in "ConditionalMacros.h". The declaration of OpaqueOTProcessProcPtr is therefore "really" in OpenTransport.h, even though it wouldn't show up with a Find command.

The reason the error occurs is that "OTProcessUPP" is not the same type as "OTProcessProcPtr", and NewOTProcessUPP() returns the former. The call you intend to make is as follows:

OTProcessUPP myDeferredUPP = NewOTProcessUPP(MyDeferredMethod);

Kevin G.


References: 
 >Carbon equivalent of OTScheduleSystemTask (From: Eric Singer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.