Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-02

Minimal C bindings for Lazarus

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho

Hello,

I managed to write minimal C bindings to use the LCL:

http://wiki.lazarus.freepascal.org/LCL_Bindings

You can create a window, put a button on it and attach a callback to the button.

I don't have much of a need to go forward and finish it now, but I think it's a nice proof of concept that it's possible and it solves many of the most chalanging problems in creating such a thing. I developed it using DevC++ on Windows, so it's compilable with GCC and should work on other operating systems without change.

The callback system was chalanging =) C doesn't support the register convention, but I managed to work around that with a smart macro and some assembly...

For the german speaking community, there will be an article on the march edition of the german toolbox maganize explaining in details how it works: http://www.toolbox-mag.de/

bye,

Felipe Monteiro de Carvalho

Reply by email

willem
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 24 lines
Hello, I managed to write minimal C bindings to use the LCL: http://wiki.lazarus.freepascal.org/LCL_Bindings You can create a window, put a button on it and attach a callback to the button. I don't have much of a need to go forward and finish it now, but I think it's a nice proof of concept that it's possible and it solves many of the most chalanging problems in creating such a thing. I developed it using DevC++ on Windows, so it's compilable with GCC and should work on other operating systems without change. The callback system was chalanging =) C doesn't support the register convention, but I managed to work around that with a smart macro and some assembly... For the german speaking community, there will be an article on the march edition of the german toolbox maganize explaining in details how it works: http://www.toolbox-mag.de/ bye,

Seems to me a very interesting Project :-)

regards Wim

Reply by email