vc185002
March 27th, 2006, 12:50 AM
Hi all
if(MyThread_Handle_Exist())
{
postmessage();
}
else
{
_beginthread(MyThread);
}
MyThread()
{
//processing;
if(peekmessage())
// repeat the thread;
}
the problem is how can i get the message in the thread, i use to chk with the Peekmessage at the end of the thread but it is not working properly
The thread has to die if there is no other message for the thead. Kindly suggect any solution
woking on VC++ 6.0 without MFC
if(MyThread_Handle_Exist())
{
postmessage();
}
else
{
_beginthread(MyThread);
}
MyThread()
{
//processing;
if(peekmessage())
// repeat the thread;
}
the problem is how can i get the message in the thread, i use to chk with the Peekmessage at the end of the thread but it is not working properly
The thread has to die if there is no other message for the thead. Kindly suggect any solution
woking on VC++ 6.0 without MFC