Solved

winsock .. threaded ? (VB6)

Posted on 2004-09-13
5
311 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Excel object stays open 19 65
changeXy challenge 13 57
JSON Response and request in VB6 application 11 141
using web browser with BING 40 86
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now