Newsgroups: comp.windows.x.motif Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!pmafire! From: dob@inel.gov (Dave Brooks) Subject: Re: writing Widgets with Float resources Message-ID: In-reply-to: bobt@boa.mitron.tek.COM's message of 31 May 91 14:34:54 GMT Sender: @pmafire.inel.gov Organization: Idaho National Engineering Lab References: <13743@dog.ee.lbl.gov> <9105311434.AA16841@boa.MITRON.TEK.COM> Distribution: inet Date: Tue, 04 Jun 91 19:30:15 GMT Bob Toole writes: > It's been so long ago, I forget exactly what the problem is. > Something to do with automatic promotion of floats to doubles and how > the intrinsics deal with the arguments whose size is greater than an int. This is correct. On some machines, float is larger than int. Consequently, passing one as a resource really passes a pointer to the float, which of course will hose you up. One of the changes from R3 to R4, or perhaps it was R2 to R3, dealt with this exact subject. passing floats to and from scrollbars was changed to pointer to float for the reasons mentioned above. regards, dlb -- ------------------------------------------------------------------------------ David L. Brooks Idaho National Engineering Lab. INTERNET: dob@INEL.GOV POB 1625 MS 2603 Phone: (208) 526-0826 Idaho Falls, Id. 83415 FAX: (208) 526-9936 ------------------------------------------------------------------------------