DDE problem with afxmessagebox
-
Hi, I am using DDE (Dynamic Data Exchange) protocol to send data from my system to another system in my network. I dont know any forums which give programming support for this protocol and hope somebody here helps me in it... Back to my question, I wanted to automate the data sending process and so I have a loop in my thread with a waitforsingleobject function . whenever new data arrives the object is signaled and data is thus transfered.I have a problem here The data is not transferred as such, but when I include a Afxmessagebox somewhere inside the loop.It works perfectly ok. I had to quit the box everytime. what difference does the AfxMessagebox does ? I dont understand it.Can anyone help me in it? Thanks. Deepak Samuel
-
Hi, I am using DDE (Dynamic Data Exchange) protocol to send data from my system to another system in my network. I dont know any forums which give programming support for this protocol and hope somebody here helps me in it... Back to my question, I wanted to automate the data sending process and so I have a loop in my thread with a waitforsingleobject function . whenever new data arrives the object is signaled and data is thus transfered.I have a problem here The data is not transferred as such, but when I include a Afxmessagebox somewhere inside the loop.It works perfectly ok. I had to quit the box everytime. what difference does the AfxMessagebox does ? I dont understand it.Can anyone help me in it? Thanks. Deepak Samuel
-
Maybe the message box is giving somewhat a Sleep equivalent and is permitting the arrival of the data to the other system? I suspect its a timing issue Papa while (TRUE) Papa.WillLove ( Bebe ) ;
Hi, Thanks for the reply. I even tried introducing a sleep in the loop instead of the AfxMessageBox but it didnt work that way.