i think that i solved the problem:
in the net i found this
Code:
Dim MSComm1 as MsComm
MSComm1 = CreateObject("MSCommlib.MSComm")
that i pasted directly in my program.
but it's not correct, because in the second line i create an object that is already existing.
so i had to modify in this:
Code:
Dim MSComm1 as Object
MSComm1 = CreateObject("MSCommlib.MSComm")
and it works perfectly!
Thanks everybody!!!
