Brian Keener wrote:
I am playing around with porting an application from Visual C++ and Delphi to GNU C++ and GNU GPC and I have a working GPC Compiler (based on a compile of the Tests in GPC). While I am no where near to having a working Makefile or truly compiled GNU GPC code for this application I have gotten as far as being able to determine that I need units for Delphi Classes and Forms.
Does anyone know where I might locate these or get replacements that will work with GPC or is there some other using I need instead.
Unfortunately, you will not get very far without a tremendous amount of work. Units for Delphi classes and forms do not exist for use with GPC. Even with compilers that fully support the Delphi object model (e.g., Free Pascal and Virtual Pascal), it would be a herculean undertaking to compile the Delphi VCL or build anything like it. There are projects (e.g., Lazarus) that aim to produce something like the VCL, but they still have a very long way to go. With GPC, the compiler itself currently supports only the old BP object model - a different thing from the Delphi model.
I have produced GPC units that begin to implement some things for Delphi compatibility (e.g., a Windows unit, and a rudimentary Sysutils unit) - but you will need far more than these. In effect, you would have to rewrite your programs (or at least the user interface parts thereof). How difficult this will be would depend on the kind of programs that you have written, and how much use they make of VCL visual objects.
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/
Prof. A Olowofoyeku (The African Chief) wrote:
interface parts thereof). How difficult this will be would depend on the kind of programs that you have written, and how much use they make of VCL visual objects.
Thank you both Professor Chief :-) and Adriaan for your responses. I am hoping these couple of modules are hopefully minimal code - but alas time to dig a little deeper and see just what we might be up against.
Again thanks for the responses.
bk