Solved

VB6 - How do I call routines in one exe from another exe like they are in same exe

Posted on 2014-01-07
2
337 Views
Last Modified: 2014-01-07
I have a VB6 exe that has a serial comms driver involved.
The issue is that sometimes whilst awaiting a response form the serial port, some other event occurs that consumes CPU for a time and as the code connot respond to serial data the device times out and errors.
I need to either be able to give priority to the serial comms code or split this serial control ot to a separate exe or somehting so that it cannot be interrupted but I then need some way to call its routines and recieve data from it.
Any help would be appreciated.
0
Comment
Question by:mortonkr
2 Comments
 
LVL 12

Accepted Solution

by:
ktaczala earned 500 total points
ID: 39764253
In .net it's called multithreading.  Not really supported out of the box in VB6.
here's a link that may help.
http://stackoverflow.com/questions/109931/multithreading-in-visual-basic-6-0
0
 

Author Closing Comment

by:mortonkr
ID: 39764276
I was just looking at doing it via a separate activex exe whe your answer came thru. I'm new to creating activex exe but I'm learning fast!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

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 is about my first experience with programming Arduino.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

828 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