News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Opening Code Blocks project file (.cbp) in Visual Studio 2008

Started by H, February 08, 2010, 05:50:12 PM

Previous topic - Next topic

H

I'm switching over to Visual Studio 2008 from Code Blocks. I have a project written in Code Blocks, and I'd like to manage it in Visual Studio. The problem is that the project file for the program is in the .cbp file format. Is there any way to get this working in Visual Studio?

MortenMacFly

Quote from: H on February 08, 2010, 05:50:12 PM
Is there any way to get this working in Visual Studio?
It's probably better to ask the devs of VS. C::B does not support any other than C::B itself. Import is another story.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

stahta01

If you wish to support BOTH Visual Studio and Code::Blocks projects;
I suggest looking into preMake or CMake build programs.

http://premake.sourceforge.net/
http://www.cmake.org/

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

starkos

The URL for Premake is actually http://industriousone.com/premake. Feel free to contact me if you have any questions about it.

TerryP

If you're moving the project from C::B to VS, just note down the settings from the Code::Blocks projects and create an equivalent solution in Visual Studio. Depending on your familiarity with, and ease of reading them, you may find it faster to open your .cbp files in Visual Studios text editor rather then running both IDEs side by side. Like .vcproj files, .cbp are just XML files, and are fairly straight forward to read/edit. The biggest issue you'll have to worry about, is if you're transitioning from GCC to Visual C++ for the compiler as well - option flags in one tool suite, do not always line up with the other.


In my personal experience, CMake is very overrated, but can be handy if you wish to support multiple IDEs.
Just Another Computer Geek