-
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.
:confused:
-
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".
-
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
-
> 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
-
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?
-
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.
-
I resolved the problem by installing the C++ builder 6 evaluation copy. It has GUI components IDE which builderX does not has.