I had the same problem, but solved it by create new project (window application) and then copy all the code I had writen into the new project.
I gues you can't create windows if you are writing the...