Hello, Maybe my questions are a little bit off topic, but I think here is the best place to ask Pascal related questions. I'm currently programming in Delphi, and I wold like to "translate" it to GPC. How can it be done ? Can it be done ? Other question. Is there any way to translate a C header file into a Delphi Unit ? Thanks --- Pablo Gabriel Bendersky bender@einstein.com.ar UIN : 1916679 Buenos Aires - Argentina
Pablo Bendersky wrote:
I'm currently programming in Delphi, and I wold like to "translate" it to GPC. How can it be done ? Can it be done ?
GPC supports most of the BP7 syntax. If your programs use Delphi's "class" OOP model, GPC will only compile it if you translate it into the "object" model of BP7.
Other question. Is there any way to translate a C header file into a Delphi Unit ?
I do not know of any. With GPC it's straightforward. With BP7 it is difficult and often impossible because you have to care about memory models, the order of parameters and such. Hope this helps, Peter -- Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/ Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-980830 PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75 Fight the SPAM and UBE! - http://spam.abuse.net/ - http://maps.vix.com/
On 19 Nov 98, at 0:08, Peter Gerwinski wrote:
Pablo Bendersky wrote:
I'm currently programming in Delphi, and I wold like to "translate" it to GPC. How can it be done ? Can it be done ?
GPC supports most of the BP7 syntax. If your programs use Delphi's "class" OOP model, GPC will only compile it if you translate it into the "object" model of BP7.
Ok, I see the diference. Is there any way to compile Win 32 applications under GPC ?
Other question. Is there any way to translate a C header file into a Delphi Unit ?
I do not know of any. With GPC it's straightforward. With BP7 it is difficult and often impossible because you have to care about memory models, the order of parameters and such.
Ok, I'll start to translate it "manually".
Hope this helps,
Of course it does. Thank you ! --- Pablo Gabriel Bendersky bender@einstein.com.ar UIN : 1916679 Buenos Aires - Argentina
Pablo Bendersky wrote:
Is there any way to compile Win 32 applications under GPC ?
You can use the `mingw32' version of GPC. See http://agnes.dida.physik.uni-essen.de/~janjaap/mingw32/ Greetings, Peter -- Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/ Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-980830 PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75 Fight the SPAM and UBE! - http://spam.abuse.net/ - http://maps.vix.com/
RE Translating C header files Contact Florian Klaempfl <ba2395@fen.baynet.de> a C to P header conversion program does exist and is currently being inproved as part of the FPC Pascal development. Especially for the PalmPilot port which requires the conversion of all the PALM O/S C header files. You can download a copy from ftp://tflily.fys.kuleuven.ac.be/pub/fpc/source/ It's in rtl.zip utils/convert/h2pas Hope this helps. - Gerry At 03:49 PM 11/18/98 -0300, you wrote:
Hello, Maybe my questions are a little bit off topic, but I think here is the best place to ask Pascal related questions. I'm currently programming in Delphi, and I wold like to "translate" it to GPC. How can it be done ? Can it be done ?
Other question. Is there any way to translate a C header file into a Delphi Unit ?
Thanks --- Pablo Gabriel Bendersky bender@einstein.com.ar UIN : 1916679 Buenos Aires - Argentina
participants (3)
-
Gerry Dubois -
Pablo Bendersky -
Peter Gerwinski