Hi All:
I feel puzzle, when I writed the simple code as follow in VB 6.0, it always inform "lock of funtion or variabel".
I don't why, please help me.
Thank you very much! have a nice day.
code:
------------------------------------------------------------
PS: I have already added "S7ProSim COM Object" as a reference.
I feel puzzle, when I writed the simple code as follow in VB 6.0, it always inform "lock of funtion or variabel".
I don't why, please help me.
Thank you very much! have a nice day.
code:
------------------------------------------------------------
Option Explicit
Private WithEvents S7ProSim1 As S7PROSIMLib.S7ProSim
Private Sub Form_Load()
------------------------------------------------------------Private WithEvents S7ProSim1 As S7PROSIMLib.S7ProSim
Private Sub Form_Load()
Dim S7ProSim1 As S7ProSim
MsgBox S7ProSim1.Connect()
End SubMsgBox S7ProSim1.Connect()
PS: I have already added "S7ProSim COM Object" as a reference.