Hello,
i want to write a whole section with multiple keys and values all at once with one call (is this actually possible??) using "WritePrivateProfileSection". however, i can't seem to get the correct format that i want.
according to a book, it says "If you want to provide a list of keys and their values, pass the list to the function as the lpString argument with each item in the list delimited with a Null character."
let's say i have section and i some 3 "key = value" pairs, how do i send the list to the function so that it appears as below?
[Section]
key1 = value1
key2 = value2
key3 = value3
:
:
:
I am able to do this using the "WritePrivateProfileString/Int" function but i have to call once for every key-value pair, which i so inefficient.
Thanks for the help
i want to write a whole section with multiple keys and values all at once with one call (is this actually possible??) using "WritePrivateProfileSection". however, i can't seem to get the correct format that i want.
according to a book, it says "If you want to provide a list of keys and their values, pass the list to the function as the lpString argument with each item in the list delimited with a Null character."
let's say i have section and i some 3 "key = value" pairs, how do i send the list to the function so that it appears as below?
[Section]
key1 = value1
key2 = value2
key3 = value3
:
:
:
I am able to do this using the "WritePrivateProfileString/Int" function but i have to call once for every key-value pair, which i so inefficient.
Thanks for the help