What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Thread or Window

Thread or Window
Author: Message:
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Thread or Window
Mnjul, you don't have to QueryInterface, a mere typecast to IMessenger3* will do the trick (not pretty though I admit).

CMI, if you want to fire off a new thread in C++, just use the following function call:
code:
_beginthread(<funcname>, <stacksize>, <arglist>);
I've only used it with a function that takes a single argument, so I'm not sure how it would handle multiple arguments, but a quick search on MSDN should help. My guess is that you'd have to do a little bit of processing yourself: others on the forums may be able to help you more.
Also, remember to #include <process.h>, or it won't compile.
Don't worry about ending the thread: once the function returns, the thread is terminated by Windows.
[Image: spartaafk.png]
07-11-2004 02:54 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Thread or Window - by CMI on 07-09-2004 at 11:05 PM
RE: Thread or Window - by Mnjul on 07-10-2004 at 03:03 AM
RE: RE: Thread or Window - by CMI on 07-10-2004 at 03:40 AM
RE: Thread or Window - by Mnjul on 07-10-2004 at 03:43 AM
RE: RE: Thread or Window - by CMI on 07-10-2004 at 04:15 AM
RE: Thread or Window - by Mnjul on 07-10-2004 at 04:59 AM
RE: RE: Thread or Window - by CMI on 07-10-2004 at 05:51 AM
RE: Thread or Window - by Mnjul on 07-10-2004 at 07:12 AM
RE: Thread or Window - by Mike on 07-10-2004 at 07:18 AM
RE: Thread or Window - by Millenium_edition on 07-10-2004 at 08:35 AM
RE: Thread or Window - by CMI on 07-10-2004 at 04:04 PM
RE: Thread or Window - by Mnjul on 07-10-2004 at 04:10 PM
RE: Thread or Window - by CMI on 07-10-2004 at 04:15 PM
RE: Thread or Window - by RaceProUK on 07-11-2004 at 02:54 PM
RE: Thread or Window - by RaceProUK on 07-11-2004 at 05:04 PM
RE: RE: Thread or Window - by CMI on 07-11-2004 at 07:07 PM
RE: Thread or Window - by RaceProUK on 07-11-2004 at 08:05 PM
RE: Thread or Window - by CMI on 07-11-2004 at 08:06 PM
RE: Thread or Window - by RaceProUK on 07-11-2004 at 08:11 PM
RE: Thread or Window - by RaceProUK on 07-11-2004 at 08:26 PM
RE: Thread or Window - by RaceProUK on 07-11-2004 at 08:45 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On