> Nohting's wrong with it; you just have to have a global for the text it
> points to. CtlSetLabel() doesn't COPY the string. All it does is point
> ctl.label to the string you pass it. SO, if you ever redraw the form and
> your string is gone the label will be garbage.

Assuming you've allowed enough space in Constructor you can use:

   StrCopy (ctl->text, "...");

   CtlSetLabel (ctl, ctl->text);

Sure beats using a global or allocating space especially.

Stephen Best
Bitware Australia Pty. Ltd.

Reply via email to