|Submitted on: 11/5/2003 4:13:29 PM |
By 4 Users
Users have accessed this code 1460 times.
| Now you to can multi thread in VB with ActiveX Exe using the power of COM. Simple and easy to use, no cryptic API, GPF's or a sea of classes. Youll be multithreading in Minutes With This Project!!|
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.
Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner
If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com
Terms of Agreement:
By using this code, you agree to the following terms...
1) You may use
this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame.
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
Other 11 submission(s) by this author
|Report Bad Submission|
See Voting Log |
|Other User Comments|
|11/6/2003 2:10:14 AM:Knoton|
I´m confused... Isn´t threading about
having more than one thread running in
the same process, calling a ActiveX.exe
is out of process... ?
|11/6/2003 3:11:04 AM:Erik Stites|
It may not in the same process, but COM
allows processes to interact. This is
also used in distributed computing.
[see Deth's readme in the zip]
|11/6/2003 7:59:57 AM:Deth|
your right knoton, this isnt true
threading in the c/c++ sense, a better
word would be multiprocessing i
guess... however the activex is set to
create a thread per object, so you
essentially have one seperate process
from your main app, where all the
multithreading takes place, the one
activex can start many threads
|11/6/2003 12:08:32 PM:Deth|
i forgot to mention that you can also
use an activex exe project as your
replacement for a standard exe project,
(activex exe can show forms) and then
it would be more multithreaded
in-process as you can with c/c++,
activex exe are really an underused
goldmine of power in vb...
|11/6/2003 2:47:18 PM:Coding Genius|
''in the c/c++ sense'' - you mean in
any sense. The meaning of
Multi-Threading isn't dependant on a
language, just as the idea of a Process
doesn't have to do with any language.
|11/6/2003 3:26:45 PM:Vlad Vissoultchev|
take a look at the hall of fame here --
there is a tutorial how to do it with
activex exe in the same process (not
the one in first place -- it's
rubbish). also, matt curlands "advanced
VB" might be of interest here -- i'm
using his impl in production systems
for an year now very
|11/8/2003 11:39:42 AM:Deth|
what i meant by "in the c/c++ sense"
was the idea of creating a thread and
calling functions by address, something
not easily done in vb6. The context of
which most people think of it is in
c/c++, but yes it can be done in other
languages, .net for instance does it
nicely and easily...
|11/11/2003 2:49:46 PM:|
All you guys sound confused about what
multi-threading is. I will explain it
as simply as possible. Multi-threading
is when my grandma uses more than one
thread to sew the seams of my pants.
There are many uses for multi-threading
including doubling up on the thread
used to sew patches on old jeans. It is
useful, increases security and
minimizes vulnerabilities of potential
future rips or tears. I hope that
clears everything up! Cheers :-)
|11/12/2003 7:02:32 PM:Deth|
|12/17/2003 11:19:53 AM:Mac|
Hmmm, this code looks a bit of Dan
Applemans Active X Threading
Principles. Deth, r u sure this is YOUR
| Add Your Feedback! |
|Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name. |
NOTICE: The author of this code has been kind enough to share it with you. If you have a criticism, please state it politely or it will be deleted.
For feedback not related to this particular code, please click here.