Results 1 to 2 of 2

Thread: far

  1. #1

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471

    far

    A keydown event for one of my controls passes
    Code:
    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.
    Bababooey
    Tatatoothy
    Mamamonkey

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It's a pointer, so you need to dereference it:
    Code:
    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
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width