Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!claris!peirce From: peirce@claris.com (Michael Peirce) Newsgroups: comp.sys.mac.programmer Subject: Re: Need Advice on Using C with MacApp Message-ID: <10165@claris.com> Date: 16 May 89 17:24:34 GMT References: <373@h.cs.wvu.wvnet.edu> Reply-To: peirce@claris.com (Michael Peirce) Organization: Claris Corporation, Santa Clara CA Lines: 31 In article <373@h.cs.wvu.wvnet.edu> gww@g.cs.wvu.wvnet.edu (Gary Carvell) writes: >I have a large program that I would really like to rewrite using >MacApp. However, the program is written in C and I need to keep >it that way - the internals of the system were written and are >maintained on Sun machines and I must be able to move updated >versions to the Mac every couple months. Is it possible to use C >code with MacApp? Is it worth the trouble? Is it possible to do >any of the user interface in C, also? If not, should I wait for >MacApp/C++ to come out, or learn Pascal and use the current version? > >Thanks in advance for any opinions/advice/words of wisdom you can >offer. > >Gary Carvell Sure, you can mix C into your MacApp based program. The only restriction I can think of is that you have to write your methods in Object Pascal (at least until C++ is officially available from Apple). These Pascal Methods can then call C subroutines if you want. My MacApp code has a far amount of C mixed in (library procedures and whatnot). Of course the C has to be MPW C. Claris Corp. | Michael R. Peirce -------------+-------------------------------------- | 5201 Patrick Henry Drive MS-C4 | Box 58168 | Santa Clara, CA 95051-8168 | (408) 987-7319 | AppleLink: peirce1 | Internet: peirce@claris.com | uucp: {ames,decwrl,apple,sun}!claris!peirce