Why is it that people always use use local objects of their main class in winmain and try to use all sorts of methods to get a pointer to the object ,like lets say in wndproc using Set/GetWindowLong.
Why dont they just use global objects simply? Whats the harm in using them?