vb6 COM libary
I installed the COM library and I can see it in the object browser in VB6, but many of the classes have nothing in them, like session. Further when I try to store & then retrieve session variables like in the demo the application crashes. I need to use VB6 I think for fixing a legacy program, so what I want to know is, is it possible to use the COM library in VB6? Am I missing something?
Here is some code. I know it's getting to the sub because the first MsgBox is firing.
Private session As WinSCPnet.session
Private Sub SendWinSCP()
MsgBox ("in SendWinSCP")
Set sessionOptions = New WinSCPnet.sessionOptions
sessionOptions.HostName = "example.com"
MsgBox ("in SendWinSCP4 " & sessionOptions.HostName & "!")
' at this point it crashes since HostName can not be found.
Here is some code. I know it's getting to the sub because the first MsgBox is firing.
Private session As WinSCPnet.session
Private Sub SendWinSCP()
MsgBox ("in SendWinSCP")
Set sessionOptions = New WinSCPnet.sessionOptions
sessionOptions.HostName = "example.com"
MsgBox ("in SendWinSCP4 " & sessionOptions.HostName & "!")
' at this point it crashes since HostName can not be found.