"Dr. Nikolaus Hueck" wrote:
>
> I have a strange problem using gcc with LstSetDrawFunction and OS 3.3
> What I try to do is to set up an arry of 30 strings and display it within
> a list using the callback routine pointed to by LstSetDrawFunc.
> It works well with OS 3.0.x but it won't work with OS 3.3:
> With OS 3.3, the first part of the list is displayed as usual,
> but when the list is being scrolled, only some strange characters
> appear on the list.
>
> I come from Pascal and are not very familiar with C, perhaps this
> is the problem? (But: it works with OS 3.0 ...)
If you're using GCC you also have to use the CALLBACK_PROLOGUE
macro, since the function you point to is a callback and you're
trying to access a global for your strings.
(BTW, if that's all that's going on in your list-drawing call-
back you could save space by just using LstSetListChoices().)
Regards,
Daniel.