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. WM_COPYDATA failing?

WM_COPYDATA failing?

Scheduled Pinned Locked Moved C / C++ / MFC
question
8 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.
  • D Offline
    D Offline
    Dave_
    wrote on last edited by
    #1

    I have seen issues with something that works fine in all Windows OS's except some machines running 2000 or XP. I'm using a WM_COPYDATA to send text between windows. When it fails, messages that should appear do not. It is extremely hard to narrow it down further than that. Is anyone aware of any issues using this message on the newer OS's?

    D 1 Reply Last reply
    0
    • D Dave_

      I have seen issues with something that works fine in all Windows OS's except some machines running 2000 or XP. I'm using a WM_COPYDATA to send text between windows. When it fails, messages that should appear do not. It is extremely hard to narrow it down further than that. Is anyone aware of any issues using this message on the newer OS's?

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Does it fail consistently? Have you used Spy++ on the recipient window to see if it is receiving the message? Perhaps the author of this article might have some knowledge of it failing.


      "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

      D 1 Reply Last reply
      0
      • D David Crow

        Does it fail consistently? Have you used Spy++ on the recipient window to see if it is receiving the message? Perhaps the author of this article might have some knowledge of it failing.


        "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

        D Offline
        D Offline
        Dave_
        wrote on last edited by
        #3

        Well, I've looked into it a bit further. It is actually recieving the message but the pointer to the data seems to be off be quite a bit (haven't counted the offset yet). I can see the start of my struct in the dump but it is preceeded by a bunch of "junk". I really don't know why. I have one long and 2 int's followed by a char[256]. The long, int's and string are all in there but not at the correct starting point. Any ideas?

        D 1 Reply Last reply
        0
        • D Dave_

          Well, I've looked into it a bit further. It is actually recieving the message but the pointer to the data seems to be off be quite a bit (haven't counted the offset yet). I can see the start of my struct in the dump but it is preceeded by a bunch of "junk". I really don't know why. I have one long and 2 int's followed by a char[256]. The long, int's and string are all in there but not at the correct starting point. Any ideas?

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Dave_ wrote: Any ideas? Having not ever used that message before, I'm afraid not.


          "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

          D 1 Reply Last reply
          0
          • D David Crow

            Dave_ wrote: Any ideas? Having not ever used that message before, I'm afraid not.


            "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

            D Offline
            D Offline
            Dave_
            wrote on last edited by
            #5

            I noticed someone else mentioned a similar issue in the article you linked to. No answer posted unfortunately.

            D 1 Reply Last reply
            0
            • D Dave_

              I noticed someone else mentioned a similar issue in the article you linked to. No answer posted unfortunately.

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              It appears that the author has not been good about answering any of them. Bummer.


              "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

              S 1 Reply Last reply
              0
              • D David Crow

                It appears that the author has not been good about answering any of them. Bummer.


                "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

                S Offline
                S Offline
                Sebastian S
                wrote on last edited by
                #7

                Hi, I saw a thread where wm_copydata failed due to the nvidia tray-icon app. MfG

                D 1 Reply Last reply
                0
                • S Sebastian S

                  Hi, I saw a thread where wm_copydata failed due to the nvidia tray-icon app. MfG

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #8

                  Ok, but since Dave_ was the one asking the question, you might want to respond to him. :)


                  "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

                  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