<p>Am 07.08.2015 08:07 schrieb "Xiangrong Fang" <<a href="mailto:xrfang@gmail.com">xrfang@gmail.com</a>>:<br>
>><br>
>> By using the correct types for the fields: <a href="http://www.freepascal.org/docs-html/rtl/ctypes/index-3.html">http://www.freepascal.org/docs-html/rtl/ctypes/index-3.html</a><br>
>><br>
>> E.g., "unsigned long" is not (always) the same as "dword".<br>
>> ​<br>
>><br>
> ​OK, as a matter of fact, the stuff was copied from output of h2pas conversion program. :-)  I will use ctypes to test again.</p>
<p>If I remember correctly there's a parameter you to have h2pas use the ctypes unit and its types as well.</p>
<p>Regards,<br>
Sven</p>