Re: [Lazarus] trying to read an EXE

2021-09-03 Thread Sven Barth via lazarus
duilio foschi via lazarus schrieb am Fr., 3. Sep. 2021, 23:08: > > Looking for string 'peppe', I can easily spot the part that contains > the code of interest. > In addition to what Bart wrote: the string will be located in a different section (usually .rdata) than where it will be used (in this

Re: [Lazarus] trying to read an EXE

2021-09-03 Thread Bart via lazarus
On Fri, Sep 3, 2021 at 11:08 PM duilio foschi via lazarus wrote: > In which form gets this instruction compiled? >i:=cmbYear.ItemIndex+2005; Compile wit -al and then open the resulting .s file in a texteditor. You'll see the assembler that the compiler generates for that line: It will be pr

[Lazarus] trying to read an EXE

2021-09-03 Thread duilio foschi via lazarus
today I did an experiment that gave me surprising results (due to my ignorance, of course). I have an application written in Lazarus and I need to do one fix only. This line result:=EncodeDate( cmbYear.ItemIndex+2005, cmbMonth.ItemIndex+1, 1); needs to be changed into result:=