Link to home
Start Free TrialLog in
Avatar of ianfmurray
ianfmurrayFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Can VB5 multi task

I have developed a standared EXE program in VB5 which I need to run 8 times on my PC. Each session is communicating with a different Main Frame.

I would like to develop the program into one EXE which can communicate simaltanously whith each of the Main Frames.

I have tried Active X controls, but thay seem to still only perform one task at a time.
If I had a number copies of a ActiveX EXE in one project would they work independantly (Multi Tasking) or should I continue to execute 8 copies of my EXE.

Avatar of MitchBroadhead
MitchBroadhead

ActiveX.exe are out of process components, which means that each instance of it runs on its own thread of execution.  Whereas dlls run in process, ie they continue the same thread of execution as the calling program.  You could create a multithreaded ActiveX exe, which would require starting a new thread every time it started a new process.  There is code to do this in VB.  But it might be better to use the WIN API.
So, in effect you are talking about a lot of effort, and possibly crashing the processor.  Ask about multithreading to the experts.
yes -- through ActiveX Exe.
ASKER CERTIFIED SOLUTION
Avatar of cable4096
cable4096

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ianfmurray

ASKER

Answer still leaves me with some work to do, but that's ok.
Thanks very much.
thanks for the points ianfmurray