Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!unlinfo.unl.edu!fergvax!shores From: shores@fergvax.unl.edu (Shores) Newsgroups: comp.sys.mac.programmer Subject: Where to use GetWVariant()? Message-ID: Date: 22 Jun 91 06:51:57 GMT Sender: news@unlinfo.unl.edu Organization: University of Nebraska - Lincoln Lines: 28 Nntp-Posting-Host: fergvax.unl.edu I've managed to get a simple WDEF to work properly under System 7.0. But buried in the memory manager chapter in IM 6, it says that to be 32-bit clean, one should call GetWVariant. I have a Mac SE, so I can't run in 32-bit mode, so I can't test it and make sure that it works for folks that are running in 32-bit mode. I'm also irked by the fact that GetWVariant and GetCVariant are not defined anywhere! pascal long main (short varCode, WindowPtr theWindow, short message, long param) { long result = 0L; varCode = GetWVariant(theWindow); /* Is this right??? */ switch (message) { case wFoo: result = DoFoo(varCode, theWindow, param); break; [...] } return (result); } Since the varCode is passed to me, why do I even need GetWVariant? Why can't the system worry about it (or does it?) and give it to me? Tom... Tommy... Thomas... the Tom-ster, the Tom-boy, the Tomminator... ... Tom Shores, Department of Mathematics, University of Nebraska. ... shores@fergvax.unl.edu