I'm having a few problems with the GetPrivateProfileString function - yes, I know we should be using the registry.....
Declare Integer GetPrivateProfileString In Win32Api String, String, String, String @, Integer, String
and I'm calling it like this
x = Space(100)
? GetPrivateProfileString( "TestSection", "TestKey", "Default", @x, 100, "MyIni.Ini")
All it ever returns though is the default value. If I create the correct section and key value it never returns the contents of it.
Any Ideas?
regards
Ian