Just remember in a "global" variable that you have done the movement so that you can then ignore OnMouseOver the next time.
Visit my project: Derivative Calculator
Just remember in a "global" variable that you have done the movement so that you can then ignore OnMouseOver the next time.
Visit my project: Derivative Calculator
Try to strip down your function to an absolute minimum and see if it still happens.
Visit my project: Derivative Calculator
I think in error handling, performance should not be of concern. So, the "I'm writing a game, everything must be fast!" argument doesn't work here. Errors should always be the exception! :) Exceptions really help you to write smaller code. When using return values, you have to check them every time. If you forget to do so, you might miss an error. So they are really prone to bugs! Exceptions on the other hand can't be simply ignored, and I think that's good.
Visit my project: Derivative Calculator
Probably your CString object, to which you store a pointer, doesn't exist any more when you're reading the pointer back. It looks like "sName" is declared locally and will get destroyed once the scope is exited. Then your pointer points to a region of memory that now contains something else. You can store a pointer to a CString inside your ComboBox. But you have to create this CString instance with new and not locally on the stack! And don't forget to delete it later when you don't need it any more.
Visit my project: Derivative Calculator
It could be an issue of caching ... Try to declare the structure instance with "volatile" and see if that helps.
Visit my project: Derivative Calculator
With a circle I think it is not possible. Imagine you're looking straight from the front at the circle, then there is no way to tell the camera's rotation, as the circle is symmetric!
Visit my project: Derivative Calculator
Then you have to wait until you get the result and then decide how to continue.
Visit my project: Derivative Calculator
Look at this one as well: http://berenger.eu/blog/2011/10/06/c-openmp-a-shared-memory-quick-sort-with-openmp-tasks-example-source-code/[^]
Visit my project: Derivative Calculator
Here you see that arrays and pointers are not quite the same although they behave almost similarly. You can't change the address of an array once it was created.
Visit my project: Derivative Calculator