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: How to pass callback from mach-o to CFM



On Thu, 28 Aug 2003 11:42:43 +0900, Kiyoto Takeuchi <email@hidden>
wrote:
> If anyone know how to pass mycallback function from Mach-O to CFM App,
> please advice me your informations.

CFM expects the address of a TVector. You can fake one by stuffing the MachO
ProcPtr into this struct:

typedef struct TVector_struct {
ProcPtr fProcPtr;
void* fTOC;
} TVector_rec, *TVector_ptr;

Since MachO doesn't care what's in the TOC you don't have to put anything in
that field.

--
Enjoy,
George Warner,
Mixed Mode Magic Fragment Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



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.