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. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal