>GetCursorPos(&Pt);
>Pt.x=xpos;
>Pt.y=ypos;
You get the cursor position, and then you immediately re-assign it to some other value. I think your assignment is backwards.
>GetCursorPos(&Pt);
>Pt.x=xpos;
>Pt.y=ypos;
You get the cursor position, and then you immediately re-assign it to some other value. I think your assignment is backwards.
I fixed the cordinates. Now I just need help to get the thing right, that when I click I want the sphere to stay there and not disapear when I release the button, and when I click again it will add another ball and the first one will not disapear.
Right now it adds a sphere when I hold down the button, and then the sphere diasapears when I release the button.
Thanks