[fpc-pascal] Windows API translation - or better way to update system tray?
reinierolislagers at gmail.com
Sun Oct 9 14:35:57 CEST 2011
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:
Amazingly, the code even seems to work ;) - see
Thanks again, Sven!
More information about the fpc-pascal