[RESOLVED] Running 2 process simultaneously in one VB6 application?
Hi all, I need to run 2 processes for my VB6 application but i don't know how to do it. My requirement for my application is 1st process which is basically running test by getting measured value from hardware and write those values into a text file and save it locally into PC. While the 2nd process will get the text file uploading into SQL database. The key of these two process is they must be independent of each other and of cause the 2nd process cannot interfere or delay the measurement for the 1st process. They must be running in parallel.
May i know what is the best way to achieve this if I need to perform this 2 process in a same application?
I have a thought of creating another application which is only performing the uploading. So there will be two applications: One for measurement, One for uploading data. But I think this might not be the best approach.
Advise are much appreciated. :)
Re: Running 2 process simultaneously in one VB6 application?
Hi guys, anyone can please advise on this?
Re: Running 2 process simultaneously in one VB6 application?
2 applications would work (just shell the 2nd application when the main application starts), then you could make the upload application into an active x exe and incorporate it into one application if preferable.
Re: Running 2 process simultaneously in one VB6 application?
Hi Witis, thanks for the reply. May i know what is the difference between Active X exe and typical exe? How to incorporate into one application?
Would you mind to elaborate more? Thanks in advance.
Re: Running 2 process simultaneously in one VB6 application?
See here for a tutorial to get you started with the active x exe: http://www.tutorialsweb.com/activex/activex.htm
Depending on your available time you might find going the route of making 2 separate applications faster to get finished. Then if you have more time think about investigating an active x exe solution.
Re: Running 2 process simultaneously in one VB6 application?
Hi Witis, thanks for the link. It is a good guide.
Thanks for the advise.