CompuServe Thread

#C Question

5 messages in this thread
#68155From: John D. SellOct 3, 1989 9:56 PM
Hi All… I'm trying to open a window and print some text and draw a couple of lines… Nothing major, but, if I open the window on workbench none of the text I pass to the TEXT function ever shows up on the screen, none of the lines I try to draw show up either, however, a call to DRAWELLIPSE does draw a circle, but not where I expect it to show up. If I try to open the window on a CUSTOMSCREEN then the window simply never shows up and when I try to close the screen my system crashes… Any help would be appreciated. I can e-mail the text of the program if that would help… Thanks
#68176From: Mike Roth/LatticeOct 3, 1989 11:44 PM
John, It's hard to tell what you could be doing wrong without seeing the code. If you send me a copy, I'd be glad to take a look at it. When you are printing with the Text() function, have you done a Move() to get to the right place in the window? Is it possible that you might have your X and Y coordinates reversed? That is a fairly common mistake. — Mike Roth
#68269From: John D. SellOct 4, 1989 8:49 PM
Thanks Mike, I'll mail over a copy John
#68288From: Robert AlbrechtOct 4, 1989 10:29 PM
Sounds to me that you are passing the wrong sized integers to the graphics functions. You should always pass 32 bit ints to them. This either means compiling to 32 bit ints or casting everything to (long) when you pass it to a function.
#68379From: John D. SellOct 5, 1989 7:12 PM
Thanks Robert, I'll try that tonight