|
-
January 22nd, 2013, 09:02 PM
#2
Re: Visual C++ Multi-Threading (Please please HELP)
 Originally Posted by rudy01
But, once I clicked the first button, I cannot even touch the second button!
That's because your program is not multithreaded. Once you start your infinite loop, it blocks your program's primary thread that is responsible for handling window messages like button clicks, so it can't do that anymore and becomes irresponsive.
Multithreading could be useful as a fix here, but multithreading is an advanced topic and beginners better should start with something simpler. You should explain on a higher level what you want your program to do, so maybe we can find a solution that's simpler than multithreading. In case it's actually meant as a practicing example in multithreading, perhaps pick a simpler example/topic.
Finaly, this is the wrong forum section for Windows Forms questions here. There's a specific one on C++/CLI including Windows Forms: http://forums.codeguru.com/forumdisp...ed-C-and-C-CLI Your question doesn't seem to be one that can be solved within just a few sentences, so please repost there.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|