i have an assignment for school in which im supposed to draw a ball to the screen so that it reflects off of the window and im running into trouble, mainly, im drawing the ball to the screen but when its so big it wont move....i attached the code
Get your DrawNextFrame right. Read the docs on msdn on device contexts and the function SelectObject(). Maybe then you will see what you are doing wrong.Dont forget to DeleteObject() either and do not delete an object that is selected into the dc. delete it after you have deselected it.
thats just the thing though, i cant pinpoint whats wrong w/it, i know im drawing it too big, but are you saying im not deleting it? msdn is awful, is too damn hard to navigate, you type something in and you get .net framework bull..........
read about SelectObject. If you have it read petzolds GDI chapter. You have to select your pen and brush into the dc then after drawing select them out again then delete them.
is there anyway you can walk me through this, graphics are totally new to me, im reading this stuff, but its not making sense to me? i cant find selectobject() (msdn is gay) i keep getting BeginPath ?
this is officially a lost cause now when i run the prog, an empty window comes up.....forget it, i'm gunna need a literal walkthrough
why are you doing this here?
yeah, you need to do this then write this here ya moron
dp: oh, er uh........derrrrrr ::drool::
thanks anyway stonie........im just not on my "A" game tonight
"i have an assignment for school in which im supposed to draw a ball"
The point is that your supposed to do it, not have someone feed you code. Keep digging and exploring--that's how you learn stuff.
maybe you should listen in class or get a book about it.