Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: ixfd64 on March 21, 2008, 10:52:18 pm

Title: Code::Blocks vs. Visual C++
Post by: ixfd64 on March 21, 2008, 10:52:18 pm
I've recently switched from Dev-C++ to Code::Blocks, but I use Visual C++ as well. I'm just curious, what are the things that Visual C++ can do that Code::Blocks can't, and vice versa?

Since I sometimes switch between these two, I'd like to know if there are any incompatibilities and such. Thanks.
Title: Re: Code::Blocks vs. Visual C++
Post by: ZGitRDun8705 on March 28, 2008, 01:33:43 pm
One advantage of Code::Blocks over Visual C++ is that Code::Blocks can use a wide variety of compilers, including the Visual C++ compiler, whereas Visual C++ can only use Microsoft's compiler.

Another advantage is feature content vs. price.  While Code::Blocks may not yet be as full featured as the Pro version Visual C++, it gets pretty darn close, and for free, instead of $400 US or more.

Yet another is the ability to run Code::Blocks from a portable USB device, so you will always have your customized IDE with you.http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_make_Code::Blocks_portable.3F (http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_make_Code::Blocks_portable.3F)  Visual C++ is too tightly integrated into the Windows operating system, and impossible to run portably without using Thinstall ($6000 US)
Title: Re: Code::Blocks vs. Visual C++
Post by: JGM on March 28, 2008, 03:49:05 pm
You can also add that code::blocks is cross-platform while visual c++ is for windows only. This opens your market more  :wink:
Title: Re: Code::Blocks vs. Visual C++
Post by: Alexis on March 28, 2008, 04:24:42 pm
Hello all,

I would say the main interest of CB is : it is a thorough stable  :D free open-source cross-platform IDE with one excellent integrated RAD tool (wxSmith).  I also think CB's text editor is more powerful than VC++ 2005 's one (I don't know VC++ 2008).
I'm still using VC++ 2005 alongside CB to develop under wxWidgets, because of some shortcomings. I'm giving a list to make sure I haven't missed something :


Most of these issues are known, and I'm confident they will be corrected soon !

Regards,

Alexis
Title: Re: Code::Blocks vs. Visual C++
Post by: DrewBoo on March 28, 2008, 04:42:34 pm
I'm just curious, what are the things that Visual C++ can do that Code::Blocks can't, and vice versa?

I'm sure far more people wonder this.  Perhaps these answers deserve a Wiki page.   :)

Since I sometimes switch between these two, I'd like to know if there are any incompatibilities and such. Thanks.

If you're worried about your actual code being incompatible, that comes down to which Code::Blocks compiler you are using.

If you are using the same compiler between Code::Blocks and Visual Studio, you don't have to worry as long as Code::Blocks and your project are set up properly.

If you are using different compilers you may have incompatibilities, as all compilers vary on how close they come to matching the C++ standard.  Microsoft's compiler in particular is known for permitting code that isn't standard C++ and (less so with recent versions) not being able to compile code that is standard C++.  In this case, your wisest move is to turn all warnings on and keep the warning count at zero, so you don't develop a bad programming habit that one compiler just happens to let slip by.
Title: Re: Code::Blocks vs. Visual C++
Post by: ArKay on April 01, 2008, 04:15:13 pm
I use C::B 95% of the time since editing is a lot easier and the IDE is a lot more helpful than VS, but when I have to debug I fire up VS 2008.