I am running a 32-bit application on a 64-bit machine under WOW64. While debugging or running through the VS2008 IDE the application works fine. But if I run it directly outside the IDE there are some major painting issues. Can some one direct me as to where the issue could be??