Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DDE problem with afxmessagebox

DDE problem with afxmessagebox

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionsysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Deepak Samuel
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • D 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

      J Offline
      J Offline
      jmkhael
      wrote on last edited by
      #2

      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 ) ;

      D 1 Reply Last reply
      0
      • J jmkhael

        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 ) ;

        D Offline
        D Offline
        Deepak Samuel
        wrote on last edited by
        #3

        Hi, Thanks for the reply. I even tried introducing a sleep in the loop instead of the AfxMessageBox but it didnt work that way.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups