communicate with the server...
Hi everyone i use to connets my vb6 made program to the opc server using the following code. but now i am trying to use the vb2010 but it is not working. i also googled around to convert it but no use it gives an error please help me to communicate with the other program using vb2010.
my code for vb6 is:
Dim server As Object
Private Sub Form_Load()
Set server = CreateObject("FaconSvr.FaconServer")
server.OpenProject ("D:\DEMO.fcs")
ConnectBtn_Click
End Sub
Private Sub ConnectBtn_Click()
server.Connect
End Sub
i also tried to add the liberary in references but the opc server is not listed there. is there a way to communicate with the server without adding it to the references...?