#C Question
5 messages in this thread
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
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
Thanks Mike, I'll mail over a copy
John
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.
Thanks Robert, I'll try that tonight