I am trying to wirte a value to settings.ini
I have kernel32.dll and a kernel32.decls in my userlibs folder.
my code looks like this
Include "imports/INI_functions.bb"
ini_write("Display","test","1","settings.ini")
INI_functions.bb:
; writes a value to an INI file
Function ini_write(Section$,Key$,Value$,File$)
IniWrite(Section$, Key$, Value$, File$)
Print"write value"
End Function
settings.ini:
[Display]
test=3
kernel32.decls:
.lib "kernel32.dll"
IniRead%(AppName$, KeyName$, Default$, String*, size%, FileName$):"GetPrivateProfileStringA"
IniEnumValues%(AppName$, KeyNull%, Default$, String*, size%, FileName$):"GetPrivateProfileStringA"
IniEnumSections%(KeyNull1%, KeyNull2%, Default$, String*, size%, FileName$):"GetPrivateProfileStringA"
IniWrite%(AppName$, KeyName$, Value$, FileName$):"WritePrivateProfileStringA"
------------------------------------------
I am not getting any kind of error just the value in my ini dont seem to change. Anyone have any idea what i am doing wrong??
I have kernel32.dll and a kernel32.decls in my userlibs folder.
my code looks like this
Include "imports/INI_functions.bb"
ini_write("Display","test","1","settings.ini")
INI_functions.bb:
; writes a value to an INI file
Function ini_write(Section$,Key$,Value$,File$)
IniWrite(Section$, Key$, Value$, File$)
Print"write value"
End Function
settings.ini:
[Display]
test=3
kernel32.decls:
.lib "kernel32.dll"
IniRead%(AppName$, KeyName$, Default$, String*, size%, FileName$):"GetPrivateProfileStringA"
IniEnumValues%(AppName$, KeyNull%, Default$, String*, size%, FileName$):"GetPrivateProfileStringA"
IniEnumSections%(KeyNull1%, KeyNull2%, Default$, String*, size%, FileName$):"GetPrivateProfileStringA"
IniWrite%(AppName$, KeyName$, Value$, FileName$):"WritePrivateProfileStringA"
------------------------------------------
I am not getting any kind of error just the value in my ini dont seem to change. Anyone have any idea what i am doing wrong??