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
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
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