• Re: J/Direct and StringBuffer

    From V@21:1/5 to All on Fri Jul 14 18:13:18 2023
    anglezzzzzzz.likesyou.org/a.php⠀⠀⠀⠀⠀⠀⠀ ⠀⠀ christyansworld.atwebpages.com/a.php⠀⠀⠀⠀⠀⠀⠀ youthmeetupplace.talk4fun.net/a.php⠀⠀⠀⠀⠀⠀⠀⠀ kohtumispaik3.66ghz.com/a.php⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀

    Heia...........Heida pilk peale nendele............

    Postita ka midagi sinna.

    Siis pärast hea mul lugeda, et mu lehtedel on mõni külastaja ka !

    Ųyvind Nilsen kirjutas reede, 8. oktoober 1999 kl 10:00:00 UTC+3:
    I'm trying to make an exe that uses win api to access and manipulate inifiles.
    Using J/direct I declare the getPrivateProfileString()
    public static native int GetPrivateProfileString(String lpAppName, String lpKeyName, String lpDefault, StringBuffer lpReturnedString, int nSize,
    String lpFileName);
    and it works ok, however this function has a feature that when called with lpKeyName = null, it sets the lpReturnedString to all keys in the section.
    My problem is that the seperator in lpReturnedString is '\0' (c binary null) and all access to the StringBuffer in Java stops at the first '\0'
    Does anyone know of a different way to declare the function or manipulate
    the StringBuffer or do I just have to use tokenizer and strings to
    accomplish this ?
    Media Technology

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)