1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SDK/API gpf

Discussion in 'Support' started by fpefpe, Apr 14, 2011.

  1. fpefpe

    Joined:
    Oct 18, 2008
    Messages:
    247
    Likes Received:
    1
    Hello --

    I have a plugin thats works with tcc//take/4nt version 7, 8, 10 ( I skipped over v9 ).

    These seems to be a problem with ver 11 and 12.

    I tracked the problem down to a call to the 'egets' function. *.h header for this
    function has the first arg to be a wchar_t buffer, the next is an int, the size of the first arg (in wchar_t chars ) and the 3rd is a flag, which I setting to 2 -- I just want to read the data not echo it ( that would be a value of 10 )

    Has this function changed in v11?

    Thanks

    Frank Esposito
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,854
    Likes Received:
    83
    egets() now has a fourth argument (LPTSTR lpszMask).
     
  3. fpefpe

    Joined:
    Oct 18, 2008
    Messages:
    247
    Likes Received:
    1
    Thanks for the info --

    I see that this argument is a string .... the header does not describe
    this value ... what sort of info is in this mask? can it bee a null pointer ? null string?

    Thanks
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,854
    Likes Received:
    83
    It contains the characters that are considered valid input. If it is null, egets() accepts everything.
     
  5. fpefpe

    Joined:
    Oct 18, 2008
    Messages:
    247
    Likes Received:
    1
    Thanks --

    This fixed the issue(s) -- was the change to this function happen with
    version 11 or an earlier version?
     
  6. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,854
    Likes Received:
    83
    V11.

    Rex Conn
    JP Software
     

Share This Page