VC++ crazy programming