[fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()
Marco van de Voort
marcov at stack.nl
Fri Jan 17 17:01:19 CET 2014
In our previous episode, Fred van Stappen said:
> > Handle is not defined on Linux. Many libraries emulate some handle type, but
> > it depends on the vendor if they make handle 32-bit or 64-bit.
> >
> > Make sure that sizeof(HANDLE) in C++ matches sizeof(THandle) in FPC. Adjust
> > the type you use at the FPC side if necessary.
>
>
> Yep, Marco, many thanks...
>
> Hum, :
> > Make sure that sizeof(HANDLE) in C++ matches sizeof(THandle) in FPC.
> >Adjust the type you use at the FPC side if necessary.
>
> How to do that ? (sorry, i do not understand)
Writeln(sizeof(THandle)); // for console apps
somememo.lines.add(sizeof(THandle)); // for gui apps.
I don't know if the Handle type in the header is defined by the C++ compiler
or by the package itself. Consult their respective documentation for more
info.
More information about the fpc-pascal
mailing list