Code::Blocks
March 22, 2010, 01:23:04 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: We are preparing a new release! Check the Announcements forum for details.
 
   Home   Help Search Login Register  :: WebsiteWiki  
Pages: [1]
  Send this topic  |  Print  
Author Topic: Opening Code Blocks project file (.cbp) in Visual Studio 2008  (Read 371 times)
H
Advanced newcomer
*
Posts: 15


« 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?
Logged
MortenMacFly
Administrator
Lives here!
*****
Posts: 4336



WWW
« 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.
Logged

Logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
Compiling help
Debugging help
Portable C::B
stahta01
Lives here!
****
Posts: 2163


WWW
« 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 » Logged

C Programmer working to learn more about C++.
OS: Win 6.1 AKA Win7
Compiler: mingw gcc 4.4 API 3.13 Runtime 3.15.2
IDE: Code::Blocks SVN + patches
wxMSW: SVN 2.9 Trunk & SVN 2.8 branch
SVN: 1.6.x
starkos
Newcomer
*
Posts: 8


« 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.
Logged
TerryP
Advanced newcomer
*
Posts: 26


WWW
« 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.
Logged

Just Another Computer Geek
Pages: [1]
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!