Ive been learning basic c++ from thenewboston.com and I used code blocks and everything worked fine(like the simple hello world). But I wanted to start learning how to use direct x so I installed directx sdk 2010 and visual c++ and I was also told to get windows sdk so in visual c++ I tried some simple code from directxtutorials.com and they compiled fine but when I tried a simple hello world(same one from code blocks) it would not work. Also the samples from the directx sdk did not work. So is there a difference in code between c++ code blocks and using c++ in visual c++ because the how you write the hello world is completely different. I'm just a little but confused.
Visual C++ uses Microsoft's compiler, whereas Code::Blocks uses MinGW's compiler suite; don't be so surprised if you have difficulty porting between the two.