PDA

Click to See Complete Forum and Search --> : far


noble
Feb 27th, 2002, 01:24 PM
A keydown event for one of my controls passes

BOOL FAR* pbStop

to the keydown function.

This is obviously to be able to restrict the char to be displayed
in the control.

However, i'm not sure how to set this value in order to restrict
the character from being displayed.

I tried pbStop = 1 or pbStop = TRUE but that's obviously not the
correct way.

parksie
Feb 27th, 2002, 01:57 PM
It's a pointer, so you need to dereference it:pbStop && (*pbStop = TRUE);The check is in case it's NULL.

The FAR is useless in 32-bit programming, it doesn't even resolve to anything :D