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. Interprocess communication??

Interprocess communication??

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

    Hi all, I was Reading "Interprocess communication" articles. and I was wondering if I could share some of my variables (for example:CWindowDC). I mean: When we declare CWindowDC , this variable assigns to a place in memory. and its values will be written in that place. So how can I share that place for another computer to easily use this place and use it as a variable, just like it is in that computer??? (Sharing a variable for another computer in a network) Please help me about this... Thanks. Every new thing you learn,Gives you a new personality. -- modified at 3:46 Tuesday 4th April, 2006

    C J 2 Replies Last reply
    0
    • D dSolariuM

      Hi all, I was Reading "Interprocess communication" articles. and I was wondering if I could share some of my variables (for example:CWindowDC). I mean: When we declare CWindowDC , this variable assigns to a place in memory. and its values will be written in that place. So how can I share that place for another computer to easily use this place and use it as a variable, just like it is in that computer??? (Sharing a variable for another computer in a network) Please help me about this... Thanks. Every new thing you learn,Gives you a new personality. -- modified at 3:46 Tuesday 4th April, 2006

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      :wtf: Geez !! You stay with your idea even if thousands of people already told you that sharing a CDC or CWindowDC is a very bad idea. A DC is relative to the context in which it is used, so, you cannot just send it to another computer and use it there. It is a really really bad design idea. Explain your problem (not what you think that it may be a solution): what do you want to do exactly by sending this CWindowDC. You told me already it was for sharing pictures. But that's crazy ! In that case why not just send the file in which the picture is, this is far more elegant (and less complicated).

      D 1 Reply Last reply
      0
      • C Cedric Moonen

        :wtf: Geez !! You stay with your idea even if thousands of people already told you that sharing a CDC or CWindowDC is a very bad idea. A DC is relative to the context in which it is used, so, you cannot just send it to another computer and use it there. It is a really really bad design idea. Explain your problem (not what you think that it may be a solution): what do you want to do exactly by sending this CWindowDC. You told me already it was for sharing pictures. But that's crazy ! In that case why not just send the file in which the picture is, this is far more elegant (and less complicated).

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

        but I think it is a good way to make a remote desktop... I don't like sending pictures. If there is any better way that is FAST without sending files. please tell me. I looked at VNC source files too, but that way is so slow too. I am confused...:confused::(( Please help me...I'm not standing on my Idea... Every new thing you learn,Gives you a new personality.

        1 Reply Last reply
        0
        • D dSolariuM

          Hi all, I was Reading "Interprocess communication" articles. and I was wondering if I could share some of my variables (for example:CWindowDC). I mean: When we declare CWindowDC , this variable assigns to a place in memory. and its values will be written in that place. So how can I share that place for another computer to easily use this place and use it as a variable, just like it is in that computer??? (Sharing a variable for another computer in a network) Please help me about this... Thanks. Every new thing you learn,Gives you a new personality. -- modified at 3:46 Tuesday 4th April, 2006

          J Offline
          J Offline
          Joel Lucsy
          wrote on last edited by
          #4

          You can not, I repeat CAN NOT share a DC across a thread boundry, process boundry, and heaven forbid, machine boundry. VNC works by communicating bitmaps, Remote Desktop shares data at a much lower level, but writing your own would proably require many man-years worth of work. I suggest you stick with VNC as it is as much an industry standard as you'll likely to get.

          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