[Lazarus] windows rt
pascaldragon at googlemail.com
Sat May 11 10:49:37 CEST 2013
On 11.05.2013 10:39, felipemonteiro.carvalho at gmail.com wrote:
> Does anyone know if it possible to use pascal code in windows rt as for the windows market now or really zero chance? I know that there is no fpc port but maybe with some hacks would work...
> My code does not use anything from the platform, not even file access, it is only logic. I was wondering if I could make it into a dll and call the dll from a .net program. I wonder if this would be acceptable for microsoft. Probably not from their rules... win32 is banned and the rtl uses it. Maybe they will be merciful since I am not using those rtl routines? Anyone tryed?
If you're really adventurous you could try to compile the unit for Win32
or Win64 (depending on the platform) and link the resulting .o file to
your code (I don't know whether you can use the MS linker for that or
whether you must use the GNU binutils). Your code must not call the RTL
in any way however (this includes strings, dynamic arrays and classes;
objects would be ok if you allocate the memory using functions from the
Windows API which are available for WinRT) and you must check whether
API functions you use are really available for WinRT (if you import API
functions you might also need to link the libimp*.a file).
In summary: it would be quite restricted, so a port would be a better
> Also, does anyone know if the executable format at least in win rt is the same? pe format and available in both executable and dll forms?
It's the same.
More information about the Lazarus