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