G
Guest
I'm accessing the registry to get the value of the LASTACTIVESYNCTIME stored
in bytes
I'm trying to use the following code below to achive this but I'm running
into
System.InvalidCastException. Do I need to put this into a byte array, then
convert it ... I don't know . Any help would be appreciated.
Dim ObjReg As OpenNETCF.Win32.Registry
Dim regkey As OpenNETCF.Win32.RegistryKey
Dim sReglocation As String = "Software\Microsoft\AirSync\Connection\"
Dim sKey As String = "LastActiveSyncTime"
Dim mybyte As Byte()
''''Dim ByteArray() As Byte
mybyte = CType(Registry.CurrentUser.OpenSubKey(sReglocation).GetValue(sKey),
Byte())
in bytes
I'm trying to use the following code below to achive this but I'm running
into
System.InvalidCastException. Do I need to put this into a byte array, then
convert it ... I don't know . Any help would be appreciated.
Dim ObjReg As OpenNETCF.Win32.Registry
Dim regkey As OpenNETCF.Win32.RegistryKey
Dim sReglocation As String = "Software\Microsoft\AirSync\Connection\"
Dim sKey As String = "LastActiveSyncTime"
Dim mybyte As Byte()
''''Dim ByteArray() As Byte
mybyte = CType(Registry.CurrentUser.OpenSubKey(sReglocation).GetValue(sKey),
Byte())