PDA

View Full Version : READ_INI macro


Andrew
07-12-2005, 05:31 AM
I'm using the read_ini macro to retrieve a value from an INI file. The value in the INI file can contain special characters. As long as the value does not start with a special character everything is retrieved just fine.

If the value starts with one or more special characters, like asci 30 or 33 or 22, ... then they will not be read until a readable character is encountered.

kinook
07-12-2005, 09:18 AM
That's just how the Win32 INI API GetPrivateProfileString works. Apparently non-printable characters after the = sign are treated like any other whitespace (ignored).

Andrew
07-13-2005, 12:54 AM
Thanks, I figured that was the problem