I had a problem with the port also. The parameter passed in the Connect function to specify the port number is a WORD. When ever I passed the port number in a variable, it didn't like it. When I basicly hard coded the port number in the function call it worked fine.
There is some flexibility in the way I wrote this one. You could modify the class to support multiple port numbers. But if the port number is unknown until the call, I'm not sure its possible to get it to work.
The other solution is, if you know how to pass a WORD from a variable. That would fix the problem.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement