I think I have a problem in my program. I must create an object that continuosly communicate with an external tracking system and get coordinates of point from it.
I\'m looking for code shortening idea. I\'m using boost::scoped_lock to lock a boost::mutex but I want to shorten the amount of code I\'m writing.
After calling unlock() on a boost::recursive_mutex::scoped_lock, will the lock object reference the mutex somehow in 开发者_StackOverflowits destructor?
In Qt, when I use the QPix开发者_如何转开发map::grabWindow(hwnd,x,y,h,w) function, the coordinates are shifted slightly, when compared to the coordinates using the windows api functions GetCursorPos a