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. Visual Basic
  4. Help with PostMessage

Help with PostMessage

Scheduled Pinned Locked Moved Visual Basic
questioncsharpc++performance
4 Posts 3 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.
  • P Offline
    P Offline
    PeterRod
    wrote on last edited by
    #1

    I am presently using WM_COPYDATA and SendMessage to pass string data from a c++ app to my vb.net app. Everything works but the response time gets sluggish in the c++ app waiting for vb.net app to process the message. I would like to use PostMessage to speed up the string data transfer. I read somewhere that I cannot use WM_COPYDATA with PostMessage. How can I use PostMessage to do my data transfer? I would like to see both the vb.net code for receiving data from PostMessage and the c++ code for sending data with PostMessage Will the use of PostMessage really speed up the sending app? Any suggestions , examples or links would be greatly appreciated Roger VS2005 Std / WinXP Pro SP3

    T K 2 Replies Last reply
    0
    • P PeterRod

      I am presently using WM_COPYDATA and SendMessage to pass string data from a c++ app to my vb.net app. Everything works but the response time gets sluggish in the c++ app waiting for vb.net app to process the message. I would like to use PostMessage to speed up the string data transfer. I read somewhere that I cannot use WM_COPYDATA with PostMessage. How can I use PostMessage to do my data transfer? I would like to see both the vb.net code for receiving data from PostMessage and the c++ code for sending data with PostMessage Will the use of PostMessage really speed up the sending app? Any suggestions , examples or links would be greatly appreciated Roger VS2005 Std / WinXP Pro SP3

      T Offline
      T Offline
      The Cadde
      wrote on last edited by
      #2

      I have no clue what you are talking about with the PostMessage deal but my i suggest making a thread that handles the c++ to vb messaging like a background worker?

      1 Reply Last reply
      0
      • P PeterRod

        I am presently using WM_COPYDATA and SendMessage to pass string data from a c++ app to my vb.net app. Everything works but the response time gets sluggish in the c++ app waiting for vb.net app to process the message. I would like to use PostMessage to speed up the string data transfer. I read somewhere that I cannot use WM_COPYDATA with PostMessage. How can I use PostMessage to do my data transfer? I would like to see both the vb.net code for receiving data from PostMessage and the c++ code for sending data with PostMessage Will the use of PostMessage really speed up the sending app? Any suggestions , examples or links would be greatly appreciated Roger VS2005 Std / WinXP Pro SP3

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #3

        Be sure that the transfered data is in a valid data block ie global object. And test it on the 'secure' Vista.:confused:

        Greetings from Germany

        P 1 Reply Last reply
        0
        • K KarstenK

          Be sure that the transfered data is in a valid data block ie global object. And test it on the 'secure' Vista.:confused:

          Greetings from Germany

          P Offline
          P Offline
          PeterRod
          wrote on last edited by
          #4

          Thanks for your quick replies. I am interested in knowing how to use PostMessage which is a Windows OS function similiar to SendMessage Thanks Roger

          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