By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,377 Members | 3,052 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,377 IT Pros & Developers. It's quick & easy.

sleep thead and wait WndProc message

P: 1
I am using a comserver to communicate remote equipments. This server gives response via WndProc. First I call READ function to start communication and remote equipment gives response this via WndProc. Mw request is, I want to
sleep READ thead and after taking right message from WndProc, wake up this thead return this value to main thead. I am trying some methods using delagate but I can not achive it.

My Program like this

Public Void CHECK()

for (int y=0;y<100;y++)


public string READ(string Adress,int Menu,int Parameter)

CommsInterface.ReadObject(UserId, Adress, ref ReadParameterObject));

//have to finish WndProc
return xx; // return data from WndProc

protected override void WndProc(ref Message m)
// WM_MUA=0x0401
if (m.Msg == WM_MUA)
//some routines

Apr 24 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.