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:
Re-scan downloaded files using your personal virus checker before using it.
NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
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
Terms of Agreement:
By using this article, you agree to the following terms...
You may use
this article 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.
You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
You may link to this article from another website, but ONLY if it is not wrapped in a frame.
You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
Just a note, this API requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 5.0 or later); requires Windows 98 (or Windows 95 with Internet Explorer 5.0 or later). (If this comment was disrespectful, please report it.)
Hmmm... works fine in the IDE, but if you compile your example (I'm running XP Pro), either nothing happens when the buttons or are clicked, or you are presented with a GPF, so not of much use at all. (If this comment was disrespectful, please report it.)
Heh... I've tried this many times in the past and I can say that this doesn't work all that great in VB6. Sure you may get another thread, but try to do ANYTHING that uses IO, including but not limited to msgbox's or disk writes, your app will crash. Overall it's just not very safe to do this, though it WOULD be extremely handy. (If this comment was disrespectful, please report it.)
There is an extraordinary example of how to use multothread in VB at this adress: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1 (If this comment was disrespectful, please report it.)
This code looks fine, but it is slightly useless. You cannot do from second thread: 1,on errorr xxxx 2,msgbox is not painted in exe file 3,you cannot manipulate with visual objects (If this comment was disrespectful, please report it.)
12/30/2002 1:35:49 AM:
Couldn't be easier, couldn't be more useful.
Thank you very much indeed. (If this comment was disrespectful, please report it.)
I'm not going to even try this code. Sounds like it'd be useful if you were to make a "virus" like program. But it's not much use to me if there's not I/O. (If this comment was disrespectful, please report it.)
Add Your Feedback
Your feedback will be posted below and an email sent to
the author. Please remember that the author was kind enough to
share this with you, so any criticisms must be stated politely, or they
will be deleted. (For feedback not related to this particular article, please
click here instead.)