Path: utzoo!utgpu!watmath!iuvax!ndcheg!ndmath!dierks From: dierks@ndmath.UUCP (Tim Dierks) Newsgroups: comp.sys.mac.programmer Subject: Help: Calling Pascal functions from MPW C Message-ID: <1340@ndmath.UUCP> Date: 18 Mar 89 19:53:49 GMT Organization: Math. Dept., Univ. of Notre Dame Lines: 13 I am writing an INIT that will patch ModalDialog and replace the filterProc passed by the original program with one of my own design. However, the first thing I want to do in my filterProc is call the original filterProc. Although my final version will be written in MPW assembler, I am working on the algorithms, etc, in MPW C. However, I can't figure out how to call a Pascal function I have a pointer to (the filterProc) from MPW C. I need to be able to pass the 3 parameters that go to a filterProc and collect the Boolean [really an unsigned char.] In LSC I'd use CallPascalB(theDlogPtr,theEventPtr,theItem, theProc). What's the equivalent for MPW C? Tim Dierks dierks@darwin.cc.nd.edu dierks@ndmath.cc.nd.edu