Hi all.
I'm trying to create a VB.NET Class Library and reference a DLL from inside that library. I'm able to add a reference, import the dll, and then dim a new object using it, but then I get a "declaration expected" error on the next line(s) of the program.
My code:
--------
Imports MyDLL
Public Class Class1
Dim objAgent As New MyDLL.Agent()
'Set the hostname (Omit if local)
objAgent.Host = "
End Class
---------
the error that I'm seeing is the "Declaration Expected" on the objAgent.Host line.
I'm sure it's obvious, but what am I missing?
Thanks in advance,
~L
I'm trying to create a VB.NET Class Library and reference a DLL from inside that library. I'm able to add a reference, import the dll, and then dim a new object using it, but then I get a "declaration expected" error on the next line(s) of the program.
My code:
--------
Imports MyDLL
Public Class Class1
Dim objAgent As New MyDLL.Agent()
'Set the hostname (Omit if local)
objAgent.Host = "
End Class
---------
the error that I'm seeing is the "Declaration Expected" on the objAgent.Host line.
I'm sure it's obvious, but what am I missing?
Thanks in advance,
~L