Results 1 to 6 of 6

Thread: [RESOLVED] Running 2 process simultaneously in one VB6 application?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2008
    Posts
    282

    Resolved [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.
    I'm still on the path of learning....

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2008
    Posts
    282

    Re: Running 2 process simultaneously in one VB6 application?

    Hi guys, anyone can please advise on this?
    I'm still on the path of learning....

  3. #3
    Addicted Member Witis's Avatar
    Join Date
    Jan 2011
    Location
    VB Forums Online Freedom Mode: Operational
    Posts
    213

    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.
    All men have an inherent right to life, the right to self determination including freedom from forced or compulsory labour, a right to hold opinions and the freedom of expression, and the right to a fair trial and freedom from torture. Be aware that these rights are universal and inalienable (cannot be given, taken or otherwise transferred or removed) although you do risk losing the aforementioned rights should you fail to uphold them e.g Charles Taylor; United Nations sources: http://www.un.org/en/documents/udhr/, http://www.ohchr.org/EN/Professional...ages/CCPR.aspx. Also Charles I was beheaded on the 30th of January of 1649 for trying to replace parliamentary democracy with an absolute monarchy, the same should happen to Dr Phil and Stephen Fry; source: http://www.vbforums.com/showthread.p...ute-Monarchism.

    The plural of sun is stars you Catholic turkeys.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2008
    Posts
    282

    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.
    I'm still on the path of learning....

  5. #5
    Addicted Member Witis's Avatar
    Join Date
    Jan 2011
    Location
    VB Forums Online Freedom Mode: Operational
    Posts
    213

    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.
    All men have an inherent right to life, the right to self determination including freedom from forced or compulsory labour, a right to hold opinions and the freedom of expression, and the right to a fair trial and freedom from torture. Be aware that these rights are universal and inalienable (cannot be given, taken or otherwise transferred or removed) although you do risk losing the aforementioned rights should you fail to uphold them e.g Charles Taylor; United Nations sources: http://www.un.org/en/documents/udhr/, http://www.ohchr.org/EN/Professional...ages/CCPR.aspx. Also Charles I was beheaded on the 30th of January of 1649 for trying to replace parliamentary democracy with an absolute monarchy, the same should happen to Dr Phil and Stephen Fry; source: http://www.vbforums.com/showthread.p...ute-Monarchism.

    The plural of sun is stars you Catholic turkeys.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2008
    Posts
    282

    Re: Running 2 process simultaneously in one VB6 application?

    Hi Witis, thanks for the link. It is a good guide.

    Thanks for the advise.
    I'm still on the path of learning....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width