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#
  4. Userdefined messages

Userdefined messages

Scheduled Pinned Locked Moved C#
csharpc++
5 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.
  • K Offline
    K Offline
    Kannan Kalyanaraman
    wrote on last edited by
    #1

    In windows you can define your own user-defined messages and send these messages between threads to notify each other, can someone tell me whats the eqt. for this in c#/.net, is there a native technique of doing this (event/delegate) or how do we do this thru p/invoke. thanks Kannan

    B 2 Replies Last reply
    0
    • K Kannan Kalyanaraman

      In windows you can define your own user-defined messages and send these messages between threads to notify each other, can someone tell me whats the eqt. for this in c#/.net, is there a native technique of doing this (event/delegate) or how do we do this thru p/invoke. thanks Kannan

      B Offline
      B Offline
      Bo Hunter
      wrote on last edited by
      #2

      Are you talking about SendMessage Api? Bo Hunter

      K 1 Reply Last reply
      0
      • B Bo Hunter

        Are you talking about SendMessage Api? Bo Hunter

        K Offline
        K Offline
        Kannan Kalyanaraman
        wrote on last edited by
        #3

        Yes..you are right. I know that its possible to use this by p/invoke mechanism, but is there a native way. thanks Kannan

        1 Reply Last reply
        0
        • K Kannan Kalyanaraman

          In windows you can define your own user-defined messages and send these messages between threads to notify each other, can someone tell me whats the eqt. for this in c#/.net, is there a native technique of doing this (event/delegate) or how do we do this thru p/invoke. thanks Kannan

          B Offline
          B Offline
          Bo Hunter
          wrote on last edited by
          #4

          You can do anything in native code but it is just that Native. If you want a native way then you need to go to the c++ forum. Bo Hunter

          K 1 Reply Last reply
          0
          • B Bo Hunter

            You can do anything in native code but it is just that Native. If you want a native way then you need to go to the c++ forum. Bo Hunter

            K Offline
            K Offline
            Kannan Kalyanaraman
            wrote on last edited by
            #5

            I'm sorry :-O Its not "native" , I meant managed code here. thanks Kannan

            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