I have an application with a built-in COM server named CANalyzer.
I want to be able to e.g. start and stop measurements with CANalyzer from VBNET and I'm following a manual how to do this. The manual says I should write:
Set gCanApp = New Application
When I press "Enter" after writing this, I get:
gCanApp = New Application()
instead???
And when trying to compile I get "Overload resolution failed because no accessible '' accepts this number of arguments"
Help please... /sa
My code (the whole designer gen code not included):
Public Class Form1
Inherits System.Windows.Forms.Form
'declare a global variable for access of the COM server Application object
Dim WithEvents gCanApp As CANalyzer.Application
Dim WithEvents gCanMeasurement As CANalyzer.Measurement
Private Sub CanConnect()
'initialise the global var
gCanApp = New Application()
gCanMeasurement = gCanApp.Measurement
End Sub
#Region " Windows Form Designer generated code "
...