Compiler for Win32 programs?

I am going to start learning application programming for Windows. I am not sure which compiler I should use. I am using Code :: Blocks IDE 10.5 right now and am used to it and would like to stick with it.

I do not know if I should use the GNU GCC compiler or the MSVC ++ 2008 compiler. Is there any reason for choosing one of them when creating a Win32 GUI project?

And how can I tell the compiler / linker to look in the Windows SDK directory instead of its own directory?

+3
source share
4 answers

You can use any of them with the code :: Blocks. Choose the one you like best. Regarding information about the Windows SDK tools, right-click your project and select "Build Options ...":

The build options dialog

Add <SDKPath>\include(C: \ Program Files \ Microsoft SDKs \ Windows \ v7.0A \ Include on my machine) to the compiler directories and linker directories add <SDKPath>\lib(C: \ Program Files \ Microsoft SDKs \ Windows \ v7.0A \ Lib on my machine )

+7
source

+1 for Visual Studio. You can find something better than this for Windows. You can also use the gcc / g ++ comand line from the Cygwin console, but I still use VS as a code editor. You will receive a free version of VS2008 Express:

http://www.microsoft.com/express/Downloads/

+1

For Win32 programs (and especially for the GUI), I think Visual Studio is a good choice. Of course, it has its own share of shortcomings, but it is not bad overall. In addition, you can get a free (and limited) copy of it from here .

0
source

I agree with what others are saying and will use Visual Studio. As stated, the express version is free, but if you are a student, you should look at the Microsoft DreamSpark program .

0
source

All Articles