Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!lll-winken!iggy.GW.Vitalink.COM!widener!netnews.upenn.edu!eniac.seas.upenn.edu!mklee From: mklee@eniac.seas.upenn.edu (Mike Lee) Newsgroups: comp.windows.ms.programmer Subject: Help/Borland C++/Petzold examples Message-ID: <45354@netnews.upenn.edu> Date: 27 Jun 91 19:53:09 GMT Sender: news@netnews.upenn.edu Reply-To: mklee@eniac.seas.upenn.edu (Mike Lee) Distribution: na Lines: 42 Nntp-Posting-Host: eniac.seas.upenn.edu Help! I have been able to get HELLOWIN.C to work, but have a little trouble with the second & third examples (SYSMETS1.C, SYSMETS2.C). With the help of TDW, I have determined that some static short variables are being assigned with new values are not in fact being updated. When I try to MODIFY the values of these variables with TDW, they do. Any ideas to why these variables not getting updated ? (namely cxChar, cxCaps, cyChar) With sysmets2.c, not only are these variables not updated, the program also generates an exception 13 and UAE. I have tried compiling with different memory models with no success. please email any info....thanks! -- -- There are three schools of magic. One: State a tautology, then ring the changes on its corollaries; that's philosophy. Two: Record many facts. Try to find a pattern. Then make a wrong guess at the next