Path: utzoo!utgpu!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ists!terry From: terry@ists.ists.ca (Terry Lim) Newsgroups: comp.sys.mac.programmer Subject: Loading and running XFCNs Message-ID: <16819@ists.ists.ca> Date: 2 Jan 91 17:24:04 GMT Reply-To: terry@ists.ists.ca (Terry Lim) Organization: Institute for Space and Terrestrial Science Lines: 18 Organization: Supposing I have a HyperCard XFCN resource, the functionality of which is pretty well independent of HyperCard (i.e. no [or hardly any] callbacks). Should I not be able to GetResource('XFCN',resid), lock down the resulting handle, and use the dereferenced pointer as a ProcPtr, passing it a homebrew XCmdBlock? Anyone have a code snippet in C showing how it's done? I am assuming that any callbacks are handled by supplying the entryPoint routine within the calling segment. I've done this sort of thing with 'CODE' resources before and there seems to be an UNLNK at the very beginning of XFCNs, so I would expect this to be do-able...? Cheers, Terry Lim terry@ists.ists.ca