Valhalla Legends Archive

Programming => General Programming => Topic started by: Lenny on July 20, 2003, 11:40 PM

Title: Sametime
Post by: Lenny on July 20, 2003, 11:40 PM
Is there anyway for commands to initiated at the sametime instead of
cmd1
cmd2
cmd3

Like, cmd1 cmd2 cmd3
Title: Re:Sametime
Post by: Adron on July 20, 2003, 11:40 PM
start cmd1
start cmd2
start cmd3
Title: Re:Sametime
Post by: Lenny on July 20, 2003, 11:53 PM
In visual basic?
Title: Re:Sametime
Post by: Adron on July 21, 2003, 04:45 AM
Quote from: Lenny on July 20, 2003, 11:53 PM
In visual basic?

No, in a bat file. Specify what you're programming next time for a better answer :P
Title: Re:Sametime
Post by: Onine on July 21, 2003, 06:21 PM
What I think he means is concurrent processing....
Title: Re:Sametime
Post by: Adron on July 22, 2003, 02:16 AM
Visual Basic isn't the right language if you want concurrent processing. Newer versions do support multithreading, but there are lots of limitations.
Title: Re:Sametime
Post by: Lenny on July 23, 2003, 01:33 AM
can you show me an example of multhreading?
Title: Re:Sametime
Post by: Adron on July 23, 2003, 06:55 AM
Look at the topic "Creating a Multithreaded Test Application" in the VB6 help.

In my case it's at
mk:@MSITStore:C:\Program\Microsoft%20Visual%20Studio\MSDN98\98VSa\1033\vbcon98.chm::/Html/vbconcreatingmultithreadedtestapplication.htm (//http://mk:@:/Html/vbconcreatingmultithreadedtestapplication.htm)

You should be able to find it either by searching the help or adapting the above url to where you installed VB6.