Codeblocks is not a compiler it's an IDE. Similarly Visual Studios is also an IDE. Both of these IDEs come with compilers I believe codeblocks uses MinGW but you can specify it to use one it doesn't come with. Visual Studio uses the microsoft made version I think but I'm pretty sure you can specify it to use a different one using an extension.
A compiler is something like gcc or the equivalent windows version MinGW.
You can do those projects in Visual studio.