English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i want to send a txt msg to another pc via network by using vb6

( both machines are in on id class )

2007-02-09 01:19:31 · 2 answers · asked by bugasanka 1 in Computers & Internet Programming & Design

2 answers

You use the WINSOCK control. It's in VB5, I have to assume that it's in vb6. It's just too detailed to explain here, look for examples on the net. It's easy, but there's lots of tricks and gotchas.

One to remember: If you call a specific port # to use in your session, and close it, it can be up to 4 minutes before you can use that port again. As Microsoft is so fond of saying, "this behavoiur is by design". So let the OS pick the port.

2007-02-09 13:04:40 · answer #1 · answered by steve.c_50 6 · 0 0

I don't think VB 6 has in-built objects that use sockets. You'll have to reference Windows API functions that use sockets, or better yet find a 3rd party library that does your networking. A good way to go would be to use DirectPlay that's part of the DirectX SDK.

2007-02-09 09:34:31 · answer #2 · answered by Pfo 7 · 0 0

fedest.com, questions and answers