Article View: comp.windows.ms.programmer
Article #3188Need explanation of global data and MakeProcInstance
From: Edward Collins
Date: Tue, 11 Jun 1991 05:04
Date: Tue, 11 Jun 1991 05:04
39 lines
2152 bytes
2152 bytes
Hello, Here's the problem: I have a dialog widget whose wndproc is specified in a call to MakeProcInstance. The dialog widget includes 3 scroll bars whose values I need in my main window's wndproc under WM_PAINT. The problem is that when I store the thumb values (or even constants) to variables I've declared globally the values do not show up when referenced in the main windows wndproc. At this point, I think it is a problem with data segments, etc, but have not been able to find an explanation. I have Petzold's book and am experimenting with a hacked version of colors2. I'm using the scroll bars to define yaw, pitch, and roll angles and want to manipulate 3-d objects in the main window. I've tried SendMessage() but without any luck so far. Is this a decent approach? What is the BEST way to make the scroll bar values available to my main wndproc when the scroll bars live in a dialog window? Also, are there problems using floating point in BCC? I read the FAQ which says it doesn't support the (MS?) fp emulation libs. I get a "bad floating point value.." message sometimes and haven't been able to determine why yet. My 3d code works outside of win3... Thanks in advance for your help. I'll summarize if there's interest. Mike. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= = Mike Collins | "Why would I want to change my = = New Mexico State University | mind? Is there something wrong = = e-mail: ecollins@nmsu.edu | with the one I have?" -- Spock = =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<1487@opus.NMSU.Edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!cs.umn.edu!ariel.unm.edu!nmsu!opus!ecollinsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!cs.umn.edu!ariel.unm.edu!nmsu!opus!ecollins From: ecollins@nmsu.edu (Edward Collins) Newsgroups: comp.windows.ms.programmer Subject: Need explanation of global data and MakeProcInstance Message-ID: <1487@opus.NMSU.Edu> Date: 11 Jun 91 05:04:24 GMT Article-I.D.: opus.1487 Sender: news@NMSU.Edu Distribution: comp.windows.ms.programmer Organization: NMSU Computer Science Lines: 39