Results 1 to 6 of 6

Thread: Multithreaded application using Active Exe

  1. #1

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Multithreaded application using Active Exe

    Hi All!

    In short... i have an application which was running on 4 different PCs now i have to run one application on server which performs the same work which those 4 applications were doing on different computers...
    the work involves looping through a recordset continously(the new records are coming every minute)...

    Instead of running 4 instances of same application on the server, i want to run one application which spawns 4 threads and all doing the same thing but with different parameters.

    Can anyone suggest how to use ActiveX Exe for multithreading so that the 4 records can be simultaneously looped through... and every thread being independant... ( i wish i were coding in Java)

    Thanx in advance

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Multithreaded application using Active Exe

    True multithreading in VB is not possible.

    There are proponents of simulating multithreading using VB and I've seen a number of examples, but I can not attest to their reliability.

    Most of these examples use the CreateThread API, so you may want to look into that (although I've heard some unfavorable things about this API's stability.)

    Just for the heck of it, I Googled Multithreading with VB6. Here is the results. You may find something here that can help you out.

  3. #3

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Re: Multithreaded application using Active Exe

    Quote Originally Posted by Hack
    True multithreading in VB is not possible.

    There are proponents of simulating multithreading using VB and I've seen a number of examples, but I can not attest to their reliability.

    Most of these examples use the CreateThread API, so you may want to look into that (although I've heard some unfavorable things about this API's stability.)

    Just for the heck of it, I Googled Multithreading with VB6. Here is the results. You may find something here that can help you out.

    I have got an idea regarding ActiveX Exe's.. as they'll all run in different processes..
    right now working on its design ..

    PS. Hack i don't know y i cant give u reputation points.. i owe u some on your help in Creating NTService

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Multithreaded application using Active Exe

    Quote Originally Posted by moinkhan
    PS. Hack i don't know y i cant give u reputation points.. i owe u some on your help in Creating NTService
    No, you don't owe me anything sir!

    Helping out is why many of us are here, and in my opinion, that is its own reward.

  5. #5

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Re: Multithreaded application using Active Exe

    Quote Originally Posted by Hack
    No, you don't owe me anything sir!

    Helping out is why many of us are here, and in my opinion, that is its own reward.
    okay.... okay .. i don't owe them... but can u tell me y it says u have to spread some points around before giving some to Hack, well i have already given some to another member...

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Multithreaded application using Active Exe

    Quote Originally Posted by moinkhan
    okay.... okay .. i don't owe them... but can u tell me y it says u have to spread some points around before giving some to Hack, well i have already given some to another member...
    Once you rep someone, you can't rep them again until you have repped at least 10 other folks.

    Thats the rule. I think it is a good rule. It prevents folks from just rep'ing each other over and over.

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