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

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.
mortonkrAsked:
Who is Participating?
 
ktaczalaConnect With a Mentor Commented:
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
 
mortonkrAuthor Commented:
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
All Courses

From novice to tech pro — start learning today.