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. String as argument to SendMessage

String as argument to SendMessage

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
4 Posts 4 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.
  • A Offline
    A Offline
    abhiramsss
    wrote on last edited by
    #1

    To SendMessage how to send a string as argument and how to recieve and display that string lets say in a edit box i have some text ABCD , i want to capture this text to a CString and pass this CString to Sendmessage as Wparam parameter to other remote process(iam using sockets for remote connevtion). and at remote Application i will capture this wparam and display the message how to do this using send message. Thanks in advance

    abhi

    L H L 3 Replies Last reply
    0
    • A abhiramsss

      To SendMessage how to send a string as argument and how to recieve and display that string lets say in a edit box i have some text ABCD , i want to capture this text to a CString and pass this CString to Sendmessage as Wparam parameter to other remote process(iam using sockets for remote connevtion). and at remote Application i will capture this wparam and display the message how to do this using send message. Thanks in advance

      abhi

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      You don't use SendMessage to communicate to another process using a socket. Also, don't cross post.

      led mike

      1 Reply Last reply
      0
      • A abhiramsss

        To SendMessage how to send a string as argument and how to recieve and display that string lets say in a edit box i have some text ABCD , i want to capture this text to a CString and pass this CString to Sendmessage as Wparam parameter to other remote process(iam using sockets for remote connevtion). and at remote Application i will capture this wparam and display the message how to do this using send message. Thanks in advance

        abhi

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        SendMessage is for sends a message to the window


        WhiteSky


        1 Reply Last reply
        0
        • A abhiramsss

          To SendMessage how to send a string as argument and how to recieve and display that string lets say in a edit box i have some text ABCD , i want to capture this text to a CString and pass this CString to Sendmessage as Wparam parameter to other remote process(iam using sockets for remote connevtion). and at remote Application i will capture this wparam and display the message how to do this using send message. Thanks in advance

          abhi

          L Offline
          L Offline
          Laxman Auti
          wrote on last edited by
          #4

          abhiramsss wrote:

          Sendmessage as Wparam parameter to other remote process(iam using sockets for remote connevtion). and at remote Application i will capture this wparam and display the message

          I suggest don't use SendMessage to send the data between client and server. Go through the following sample you will get the solution how to send the CString to remote process. http://www.codeproject.com/useritems/MFCSockets.asp[^]

          wrote:

          Knock out 't' from can't, You can if you think you can :cool:

          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