vb6 Questions - Astro Answers most recent 30 from http://astroanswers.org 2010-09-10T20:51:17Z http://astroanswers.org/feeds/tag/vb6 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://astroanswers.org/questions/248/vb6-code-works-with-simulator-doesnt-work-with-real-one VB6 code: works with simulator, doesn't work with real one... andreaconsole 2010-03-05T00:01:50Z 2010-03-24T05:37:19Z <p>Hi everyone, I have a problem with this simple code I grabbed from the internet (it's just a small extract):</p> <pre><code>Dim chsr As Object Dim id As String Dim m_scope As Telescope On Error GoTo noascom Set chsr = New DriverHelper.Chooser chsr.DeviceType = "Telescope" you can remember the telescope ID and set it to give you the last one used id = chsr.Choose(id) Set m_scope = CreateObject(id) '&lt;--- &lt;--- &lt;---- &lt;---- &lt;---- &lt;----' ' connect to the telescope' m_scope.Connected = True </code></pre> <p>Although it works with telescope simulator, with MeadeEx.Telescope driver it gives the "error 13 - type mismatch" at highlighted line. Can anyone find the problem? </p> http://astroanswers.org/questions/80/camera-simulator-how-to-use camera simulator: how to use?? andreaconsole 2010-01-04T21:14:45Z 2010-01-05T22:36:26Z <p>I'd like to connect to the camera simulatro in vb6.</p> <p>I wrote simply this:</p> <pre><code>Dim Cameram As New Camera Private Sub Command1_Click() Text1.Text = Cameram.Connected End Sub </code></pre> <p>and obviously the answer is <code>false</code>.</p> <p>how to connect the simulation camera, in order to perform further tests?</p>