How can your applicationIsInPointer object draw stuff if it doesn't reach your window? You've commented that it returned things, but you are doing nothing with the return.
Apart from that, I think you are sleeping the wrong ammount of time. You are storing the time passed on the lastTime variable, and then sleeping another of that same ammount. If it passed 1 millisecond since the last frame, you sleep 1 more millisecond. The correct ammount, I think, would be constantLPS - lastTime, or something like that.
You can also use the same clock for both operations, if both will work at the same rate.