Hi
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 ?
Thanks
Oyvind
Media Technology
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 339 |
Nodes: | 16 (2 / 14) |
Uptime: | 07:37:13 |
Calls: | 7,486 |
Files: | 12,704 |
Messages: | 5,635,719 |