Hi.

I'm developing a school project which consists in a Instant Messenger using the Microsoft Winsock control.

The IM project consists in a Server and a Client, but in this case only clients are allowed to talk, the server is there to put 2 clients in communication with each other.

The problem I'm having occurs when i try to send a message from a client to another.
The clients are registering their requestID in a database, and when a client try to communicate, the server searches in a database for the ID of the other client, and then places the communication.

id is the variable who carries the id in the database

sock(id).sendData ("example")

but this won't work... it gives me an error (i know that vb6 is getting the ID right off the database because it printed it right after performing the .seek function)

But if I instead of id(variable) place directly the id(integer), it works!!!

ex.

sock(2).sendData ("example")

this way things will work perfectly...!

I hope and can get some help here :S, the only thing left to this to work is this problem... i need to get it to work with the id it gets from the database...

Thanks in advance!