[fpc-pascal] Problem compiling DLL for 64Bit Windows - complete example attached

Marc Weustink marc at dommelstein.net
Fri Dec 18 01:45:51 CET 2009


Lukas Gradl wrote:
> Hi!
> 
> I'm having serious troubles compiling a DLL for 64bit Windows.
> I'm using FPC svn 14444 (Ver 2.5.1) on all machines. I tried on WinXP 
> 32bit (works), Vista 64bit (doesn't work), Win7 32Bit (works) and Win7 
> 64bit (doesn't work).

 >   rMonitor=packed record
...
>   end;
> 
>   rMonitorEx=packed record
>     dwMonitorSize:DWORD;
>     Monitor:rMonitor;
>   end;

Are you sure the C record is packed too ? This would mean that all 
function pointers in rMonitor are not aligned.


Marc



More information about the fpc-pascal mailing list