Try @Mark.Thank you Engkin. That works with FPC. Unfortunately, it doesn't work with Delphi 2 (I don't know if it works or not with later versions.)
Unfortunately I don't known much about Delphi, but I see it works with $mode Delphi. I know it doesn't help as you already tested with Delphi 2.I appreciate the help. FPC works as it should. There is nothing esoteric about a label but, Delphi 2 seems to treat it as a "sacred object".
Hmm, I find that hard to believe the @ does not work with D2 ?Hard to believe but, believe it. I hadn't tried "Addr" but, tried it after you suggested it and, no luck.
anyways, did you try Addr(The Item of Interest ):Pointer;
Current Delphi still doesn't allow to take the address of a label... 🤷♀️Thank you for providing that information. I tried everywhich way I could think of to no avail.
Hi Bx, did you try with $mode Delphi?Hi Connie. No, I didn't try $mode Delphi because I want my executables to compile with both FPC and Delphi 2 _without_ setting any mode (which means, I always use FPC's default mode - except in somewhat rare cases.)
Well, FPC's default mode is not delphi compatible...But, since I don't use objects and/or classes, there are only very few instances when I need to write code that is specific to either compiler.
Well, FPC's default mode is not delphi compatible...But, since I don't use objects and/or classes, there are only very few instances when I need to write code that is specific to either compiler.