Adding Delphi Components to C++ Builder
Posted on 1997-04-18
Just got C++ Builder...looks great...I'm not defecting though...will be using it to enhance some things...one peeve though...when will Borland get their help files right???
To the question: I have two components directories: Registration and Source. The source directory contains all the .PAS files that contain the componets classesa and relevant code. The Registration directory contains a few .PAS files that contain only the minimum registration calls and the .DCU files of source files. This all works like a charm in Delphi...I've separated things such, because in the past, during debugging, the integrated debugger had an annoying habit of popping into my component code...seems that a USES looks first for .PAS files then for .DCU files.
Anyhow, when I load up the registration .PAS file in C++ Builder and then go through the normal procedure for installing a component...during the component 'compile' and error pops up saying it cn't find XXX.pas. So it obviously isn't looking for the .DCU file. I was thinking I should add it to the project, except that C++ Builder won't give me access to any of the project options (the menu is grayed out).
So...what is the procedure for adding a Delphi-written component to C++ Builder??? Given how I have things set-up above? I even tried compiling one of the .PAS source files to a .OBJ, but that didn't solve anything (besides I read that the .OBJs have to be in a special format and I'm not sure if Delphi 2 will create a .OBJ the C++ Builder is happy with).
I'm pretty sure this is a question between easy and moderate. Correct me if I'm wrong and I'll adjust the points.