vb6 Questions - Astro Answersmost recent 30 from http://astroanswers.org2010-09-10T20:51:17Zhttp://astroanswers.org/feeds/tag/vb6http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://astroanswers.org/questions/248/vb6-code-works-with-simulator-doesnt-work-with-real-oneVB6 code: works with simulator, doesn't work with real one...andreaconsole2010-03-05T00:01:50Z2010-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) '<--- <--- <---- <---- <---- <----'
' 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-usecamera simulator: how to use??andreaconsole2010-01-04T21:14:45Z2010-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>