Convert C++ project

This is a discussion on Convert C++ project within the Tech Board forums, part of the Community Boards category; Hi, I am a C++ novice and need to convert a Borland C++ Builder 6 project to Borland C++ Builder ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    81

    Question Convert C++ project

    Hi,

    I am a C++ novice and need to convert a Borland C++ Builder 6 project to Borland C++ Builder X.

    C++ Builder X cannot associate the file extension of .bpr, I build a new project with .cbx.

    In the old project, there are some files that C++ Builder X cannot recognize. They are:

    .ddp
    .dfm
    .res

    Do they the Delphin document project and form files? Why did they include in a C/C++ project? How can I open that form in C++ Builder?

    Moreoever, there is compile error:
    Unable to open include file 'vcl.h' at line 1

    Does vcl.h relate to Windows Form?

    There are 4 C/C++ compilers:

    Intel(R) C++ Compiler 7.1 for Windows (IA-32) Tools
    Minimalist GNU For Windows
    Microsoft C/C++ Compiler Tools
    Borland Win32 Compiler Tools (Active)

    Should I choose Borland Win32 Compiler Tools?

    Thanks for advice.


  2. #2
    Registered User BillBoeBaggins's Avatar
    Join Date
    Oct 2003
    Posts
    107
    This isn't a C++ novice issue, since this essentially has nothing to do with the language and all to do with the tool. I suggest you simply start a new project in X and then import your code modules, or paste, whatever floats your boat. This will save you a ton of time, rather then trying to figure out how X works with its project files....

    To your second question.. check the basics.. make sure that vcl.h is in the <include> directory, and if it isn't then find it, and either put it there or put it in your project folder "vcl.h".
    Last edited by BillBoeBaggins; 08-05-2004 at 10:58 AM.
    May the compiler be with you.
    Be one with the compiler, and you shall prosper greatly.

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    81
    Yes, there is no vcl.h in include directory of C++ Builder X.

    I searched over the net and found it at http://chicory.stanford.edu/CVCL/doc/vcl_8h-source.html

    However, vcl.h requires

    #include "vc.h"
    #include "command_line_flags.h"
    #include "statistics.h"
    #include "theorem.h"
    #include "cdmap.h"
    #include "compat_hash_map.h"

    and they require other header files.

    Do I need to download all of them? or, I can get them from C++ Builder 6 directly?

    Thanks for help

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,434
    > However, vcl.h requires
    Yeah, that's just the tip of the iceberg!

    http://faq.cprogramming.com/cgi-bin/...&id=1043284385

    Yes, you will need all the header files, and all the associated libraries, and a slice of luck hoping that your new compiler understands your old library format.


    You're going to be better off digging around the home site
    http://www.borland.com/cbuilderx/
    maybe they have a forum like this
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    Registered User
    Join Date
    Oct 2001
    Posts
    81
    http://faq.cprogramming.com/cgi-bin/...&id=1043284385

    You can't just get the header file. A header file is just a pointer to the .lib. Have you ever looked in a header? Not much actual code going on in there is there? It's just all #define THISTHING and extern _SOMEWEIRDCOLLECTIONOFLETTERS. So, you say, "Can i have the lib too?" Sadly, no. Its copyrighted.

    So, it is no use even I collect all header files and I cannot get the lib file.

    The only feasible solution is changing back to use C++ Builder 6?

  6. #6
    Registered User BillBoeBaggins's Avatar
    Join Date
    Oct 2003
    Posts
    107
    I am going to Ditto what I said previously then add:
    See what functions come back 'undefined' when you try to compile then find out what headers they are in.
    May the compiler be with you.
    Be one with the compiler, and you shall prosper greatly.

  7. #7
    Registered User
    Join Date
    Oct 2001
    Posts
    81
    I resolved the problem by installing the C++ builder 6 evaluation copy. It has GUI components IDE which builderX does not has.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. renaming a project created with MSVC 6
    By Bleech in forum Windows Programming
    Replies: 2
    Last Post: 10-31-2006, 12:19 AM
  2. 2D RPG Online Game Project. 30% Complete. To be released and marketed.
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 10-28-2006, 12:48 AM
  3. Dynamic Binding
    By gpr1me in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2006, 08:01 AM
  4. possible project
    By subdene in forum C++ Programming
    Replies: 6
    Last Post: 09-26-2003, 01:33 PM
  5. c++ OOP project ideas
    By newbie17 in forum C++ Programming
    Replies: 4
    Last Post: 02-25-2002, 11:40 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21