On 9-10-2011 14:17, Sven Barth wrote: > That's not C++, but C, but in both "NULL" can be used for both: pointers > and ordinals. In Pascal HWND is an ordinal and there the correct > equivalent is of course "0". So yes, you should use "0". Maybe you'll > need to do this for the first param as well. Just goes to show: C, C++, all the same to me ;) Thanks for the clear explanation. I just put in 0 for all HWNDs... > > As a sidenote: It's always good to inform oneself about the used > functions using MSDN. There you'd see what the meaning of "0" or "NULL" > in this function is. Here it is btw: > http://msdn.microsoft.com/en-us/library/windows/desktop/ms633500%28v=vs.85%29.aspx Yep, thanks.
Amazingly, the code even seems to work ;) - see https://bitbucket.org/reiniero/checkride/ Thanks again, Sven! Reinier _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal