originally win32 api was converted with fpc tool automatically<br>this is why it's closer to c than delphi equ declarations.<br><br>as yury indicated , compatibility adaptation should be done in redef<br><br><br><div>
<span class="gmail_quote">2007/1/7, peter green <<a href="mailto:plugwash@p10link.net">plugwash@p10link.net</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>> I'm not particularly happy with "pascalization" of direct interfaces<br>> myself.<br>me neither, my understanding of this problem is that borland pascalised the windows unit in delphi and freepascal followed suite for win32.
<br><br>but for whatever reason the same was not done for wince.<br><br>since wince support is so new i'd normally say just change wince to match win32 but that will break a lot of wince using code in strange ways (as you will effectively be passing windows a pointer to a pointer when the windows api expects a pointer to data).
<br><br>maybe the answer is to build two windows units, one called windows and only availible on win32 which will be effectively a delphi compatibility unit and marked as such in the docs and one called say winapi that will be a direct translation without any of this pascalisation.
<br><br>_______________________________________________<br>fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br><a href="http://lists.freepascal.org/mailman/listinfo/fpc-devel">
http://lists.freepascal.org/mailman/listinfo/fpc-devel</a><br></blockquote></div><br>