I am getting a CS0266 compiler error when compiling the following line:
I may be wrong, but I think Reg.GetValue is trying to return an object that I'm then trying to assign to the array - but that is the method shown in the Registry library help.
It works fine in the IDE; but when compiling to Desktop it return the compiler error. Could someone suggest a fix to the RegistryDesktop.cs file for me please?
B4X:
Sub Globals
'Declare the global variables here.
Dim Binary(0) As Byte
End Sub
Sub App_Start
Reg.New1 'Reg is a RegistryDesktop object
Reg.RootKey(Reg.rtCurrentUser)
Binary()=Reg.GetValue("Control Panel\Desktop","UserPreferencesMask") 'Causing the CS0266 error
'....
End Sub
I may be wrong, but I think Reg.GetValue is trying to return an object that I'm then trying to assign to the array - but that is the method shown in the Registry library help.
It works fine in the IDE; but when compiling to Desktop it return the compiler error. Could someone suggest a fix to the RegistryDesktop.cs file for me please?