Skip to content

Commit ce73411

Browse files
committed
Fix issues arising from Migration to Platform 7, (Private internal members have moved.)
1 parent 0fdaf80 commit ce73411

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

Conform/FrmConformMain.vb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -896,9 +896,9 @@ Public Class FrmConformMain
896896
Case DeviceType.Telescope
897897
l_NewProgID = l_Chooser.Choose(g_TelescopeProgID)
898898
If l_NewProgID <> "" Then
899-
g_Settings.DeviceTelescope = l_NewProgID 'Only update settings if OK pressed
900-
g_TelescopeProgID = l_NewProgID
901-
End If
899+
g_Settings.DeviceTelescope = l_NewProgID 'Only update settings if OK pressed
900+
g_TelescopeProgID = l_NewProgID
901+
End If
902902
Case DeviceType.Switch
903903
l_NewProgID = l_Chooser.Choose(g_SwitchProgID)
904904
If l_NewProgID <> "" Then
@@ -1635,7 +1635,7 @@ Public Class FrmConformMain
16351635
End Sub
16361636
Private Function FindDriverExecutable() As String
16371637
FindDriverExecutable = FindDriverInRegistry(Registry.ClassesRoot)
1638-
If ASCOM.Utilities.ApplicationBits = Utilities.Bitness.Bits64 Then ' Check the 32bit registry on a 64bit system if we haven't found an executable yet
1638+
If Utilities.Global.ApplicationBits() = Utilities.Global.Bitness.Bits64 Then ' Check the 32bit registry on a 64bit system if we haven't found an executable yet
16391639
If String.IsNullOrEmpty(FindDriverExecutable) Then ' We are on a 64bit OS and haven't yet found an executable
16401640
LogMsg("FindDriverExecutable", MessageLevel.msgDebug, "We are a 64bit application and an executable has not yet been found, looking in 32bit registry")
16411641
'Using Reg As ASCOM.Utilities.RegistryAccess = New ASCOM.Utilities.RegistryAccess

Conform/FrmSetup.vb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Imports ASCOM.DeviceInterface
22
Imports System.Windows.Forms
3-
Imports ASCOM.Utilities
3+
Imports ASCOM.Utilities.Global
44

55
Public Class frmSetup
66
Private Sub BtnSetLogFileDir_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSetLogFileDir.Click
@@ -24,7 +24,7 @@ Public Class frmSetup
2424
txtLastUpdate.Text = g_Settings.UpdateCheckDate.ToString
2525
chkDebug.Checked = g_Settings.Debug
2626
chkRunAs32Bit.Checked = g_Settings.RunAs32Bit
27-
If VersionCode.OSBits = Bitness.Bits32 Then chkRunAs32Bit.Enabled = False 'If we are on a 32bit OS doable this option
27+
If Utilities.Global.OSBits = Bitness.Bits32 Then chkRunAs32Bit.Enabled = False 'If we are on a 32bit OS doable this option
2828
chkInferStateFromErrorMessages.Checked = g_Settings.InterpretErrorMessages
2929
chkUseDriverAccess.Checked = g_Settings.UseDriverAccess
3030
UpDownObservingConditionsRetries.Value = Convert.ToDecimal(g_Settings.ObservingConditionsMaxRetries)
@@ -109,7 +109,7 @@ Public Class frmSetup
109109

110110
Private Sub FrmSetup_FormClosed(ByVal sender As Object, ByVal e As FormClosedEventArgs) Handles Me.FormClosed
111111
Dim NewBitness As String
112-
If VersionCode.OSBits = Utilities.Bitness.Bits64 Then 'Only test for a bitness switch if we are on a 64bt OS
112+
If Utilities.Global.OSBits() = Utilities.Global.Bitness.Bits64 Then 'Only test for a bitness switch if we are on a 64bt OS
113113
If Not ((g_Settings.RunAs32Bit = (IntPtr.Size = 4)) Or (Not g_Settings.RunAs32Bit = (IntPtr.Size = 8))) Then
114114
If g_Settings.RunAs32Bit Then
115115
NewBitness = "32bit"

Conform/GlobalVarsAndCode.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ Module GlobalVarsAndCode
341341
'Here we check if the user actually wants to run the 32bit version of Conform on a 64bit OS and start this if required
342342
'If g_Settings.Debug Then MsgBox("Conform: New " & IntPtr.Size & " " & g_Settings.RunAs32Bit & " " & Application.StartupPath & "\Conform32.exe")
343343

344-
If VersionCode.OSBits = Utilities.Bitness.Bits64 Then 'Only test for a bitness switch if we are on a 64bt OS
344+
If Utilities.Global.OSBits() = Utilities.Global.Bitness.Bits64 Then 'Only test for a bitness switch if we are on a 64bt OS
345345
LogicString = g_Settings.RunAs32Bit.ToString & (IntPtr.Size = 4).ToString
346346
Select Case LogicString
347347
Case "TrueFalse" 'Require 32bit but running as 64bit

0 commit comments

Comments
 (0)