Author Topic: Opening Code Blocks project file (.cbp) in Visual Studio 2008  (Read 25737 times)

Offline H

  • Multiple posting newcomer
  • *
  • Posts: 15
Opening Code Blocks project file (.cbp) in Visual Studio 2008
« on: February 08, 2010, 05:50:12 pm »
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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Opening Code Blocks project file (.cbp) in Visual Studio 2008
« Reply #1 on: February 08, 2010, 05:59:36 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Opening Code Blocks project file (.cbp) in Visual Studio 2008
« Reply #2 on: February 08, 2010, 09:32:39 pm »
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.
« Last Edit: February 08, 2010, 09:34:11 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline starkos

  • Single posting newcomer
  • *
  • Posts: 8
Re: Opening Code Blocks project file (.cbp) in Visual Studio 2008
« Reply #3 on: February 11, 2010, 08:53:49 pm »
The URL for Premake is actually http://industriousone.com/premake. Feel free to contact me if you have any questions about it.

Offline TerryP

  • Multiple posting newcomer
  • *
  • Posts: 26
    • My journal
Re: Opening Code Blocks project file (.cbp) in Visual Studio 2008
« Reply #4 on: February 13, 2010, 07:56:18 pm »
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