Put more info here, what you try.
As I know, first you should create a key map of your remote control for Lirc in case if it's not one of predefined.
Most of Linux software, which supports Lirc works through DBUS and there is a bindings for FreePascal/Lazarus with examples.