Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!elroy.jpl.nasa.gov!ames!haven!decuac!shlump.nac.dec.com!mountn.dec.com!minow From: minow@mountn.dec.com (Martin Minow) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK C 4.0 anomaly ? Message-ID: <1724@mountn.dec.com> Date: 28 Jun 90 15:28:15 GMT References: <10979@imag.imag.fr> Reply-To: minow@bolt.enet.dec.com (Martin Minow) Organization: Digital Equipment Corporation Lines: 21 In article <10979@imag.imag.fr> bordier@imag.fr (Jerome Bordier) writes: > value = PrDlgMain(print_record_hdle, &PrJobInit); >I have added an #include to compile with THINK C 4.0 >and the compiler refuse "&PrJobInit" (illegal "adress of" operator). >N.B. PrJobInit is a function in the toolbox. I suspect (but haven't checked) that PrJobInit is a "Toolbox glue" routine that is defined as an in-line function (i.e., a piece of assembler that is inserted in your program) rather than as a normal addressable routine. I believe that this capability was added to Think C 4.0. You can check by looking at the source of . >There is a simple way to fix the problem in this particular case : replace >the second call of PrDlgMain by "PrJobDialog(print_record_hdle);" which do the >same thing (references :Printing Manager and Macintosh Technical Note #95). >Nevertheless the problem seems to be an anomaly in the compiler. More likely, it's something missing or unclear in the documentation. Martin Minow minow@bolt.enet.dec.com