Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!alfalfa.com!nazgul From: nazgul@alfalfa.com (Kee Hinckley) Newsgroups: comp.windows.x.motif Subject: Re: writing Widgets with Float resources Message-ID: <910530224357.250@sony> Date: 30 May 91 13:43:57 GMT References: <13743@dog.ee.lbl.gov> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 13 > It appears that no matter what I try, XtSetValues passes junk > as the float; as soon as I get into my SetValues function and > take a look at what is passed, I get some bizarre value. This Look at the structure. sizeof(float) is probably greater than sizeof(long). You'll need to use pointers to float or some such. Alfalfa Software, Inc. | Poste: The EMail for Unix nazgul@alfalfa.com | Send Anything... Anywhere 617/646-7703 (voice/fax) | info@alfalfa.com I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.