Quick Search for:  in language:    
COM,API,multi,thread,with,ActiveX,using,power
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,290,928. lines
 Jobs: 203. postings

 How to support the site

 
Sponsored by:

 
You are in:
 

Does your code think in ink?
Login





Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!Taskbar Icon With a Borderless Form
By Immortal Tako on 12/24

(Screen Shot)

ErrorManager
By Cyber Chris on 12/24


Open and Compact Protected Db
By Nicola La Rocca on 12/24


Click here to see a screenshot of this code![Winsock Simple Multiplayer Game]
By andrej Kolla on 12/24

(Screen Shot)

soundex_functio n
By Joseph Varghese on 12/24


QSort Program
By Bill Adams on 12/24


Click here to see a screenshot of this code!Latest E-Santa Greeting
By anoopsihag on 12/24

(Screen Shot)

Click here to see a screenshot of this code!Matrix Inverse and Transpose Calculator
By Vagelis Plevris on 12/24

(Screen Shot)

Click here to see a screenshot of this code!Class to draw a shaded frame to a form/image/pict ure
By Fosters on 12/24

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Affiliate Sites



 
 
   

VB MultiThreading!!

Print
Email
 
winzip icon
Submitted on: 11/5/2003 4:13:29 PM
By: Deth  
Level: Intermediate
User Rating: By 4 Users
Compatibility:VB 6.0

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!!

 
winzip iconDownload code

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
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor 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... ?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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]
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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 
successfully.
cheers,
</wqw>
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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 :-) 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/12/2003 7:02:32 PM:Deth
haha
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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 
code ???
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
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.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.