Solved

winsock .. threaded ? (VB6)

Posted on 2004-09-13
5
315 Views
Last Modified: 2013-11-13
hi !
i wanted to ask .. does the winsock_dataarrival function run in a separate thread ?
is there any call back function in VB6 that runs in a separate thread ?

thanks :)
muskad202
0
Comment
Question by:muskad202
5 Comments
 
LVL 2

Expert Comment

by:Lethal_J
ID: 12043990
Im not sure that i understand the question, but the "DataArrival" sub runs seperatly from anything else (unless you specifically code it not to... in which case things could get messy).  When Winsock detects incoming data, the sub is autocalled and processes any commands written within.

This might help you understand the functions and subs a bit more.  Its a simple 'Terminal' program demo for "Winsock Programming"

http://www.vbip.com/winsock/winsock_terminal.asp
0
 
LVL 26

Accepted Solution

by:
EDDYKT earned 20 total points
ID: 12044559
Since VB is single threaded and each message call from outside must be go through ONE / SIGNLE message pump. so that all messages from outside must be in queue.


Except you use createthread API which is internal from VB app and not going through the message pump so that that is the only way for VB to work on mutli-threaded. again this does not work to get message from outside.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Spell Check in VB6 13 134
MsgBox 4 71
convert Systemjs to Webpack 3 71
odbc driver manager data source name not found and no default driver specified 9 25
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question