|
I'm writting some remote admin software in C#, I would like to be able to implement a remote desktop, much like what MS does with the windows terminal services, however, i'm too poor to pay for this, and hence want to write my own. Unfortunately, I'm not too sure where to start.
I'm intend implementing the solution on Win2k/WinXp. I have VNC connections to the destination networks, however, an HTTP connection solution would be optimally desired.
I currently can see one option available to me and it's not the optimum way. To use a screen grabbing process and download compressed images and mouse coords of the remote machines desktop to the server software, while coordinating keyboard/mouse input between the server & client software.
Using this method, a screen grab of 256 colours, 1024x768 resolution, zip compressed, the file size of the image is about 40-90 KB. With the bandwidth available to me, which is about a 500 Kb/s (62 KB/s) cable connection, the results are going to be slow frame rate of about 1-2 frame/s, which is not really acceptable.
If anyone can give me any pointers to source code or methods to implement a better way, it would be most helpful.
|
|
|
|
|
Take a look at the RealVNC protocol specification, that should give you some ideas.
http://www.realvnc.com/docs/rfbproto.pdf
|
|
|
|
|
Thanks for that, i'll have a read
|
|
|
|
|
The Load event of a Form lets you write code before/after the form is loaded (don't know for sure). The doc says "Occurs before a form is displayed for the first time.".
Question: Is there a way to do something after a form is displayed for the first time?
I want to do some lengthy processing and it would be cool to have the form visible before displaying a wait-window or a wait cursor. I already tried to handle the WM_SHOWWINDOW message, but unsuccessfully.
Maybe I could post myself a message with PostMessage (if it is available)?
--
Affordable Windows-based CMS: www.zeta-producer.com
|
|
|
|
|
|
Thanks for your feedback! Unfortunately it has the same effect es handling the Load event in my current scenario. (I.e. the result that the dialog is not shown before finishing my lengthy processing).
I'll keep searching...
--
Affordable Windows-based CMS: www.zeta-producer.com
|
|
|
|
|
|
Use activate and set a variable to true. It:
.... ACTIVATE ....
if (!_tastDone) { DoSomething(); _taskDone = true; }
|
|
|
|
|
How about having a timer on your form that fires a fraction of a second after the form is opened?
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
|
i am want to make a CodeEditor, so i want use the outlining code, but i do not know how to do, can anyone help me? thank you very much!
|
|
|
|
|
i am very curious about the Outlining Code , and i want to carry it out in my progrm with c#, can you help me? thanks!
|
|
|
|
|
I am trying to automate MSExcel and have so far been unsuccessfull converting text to columns. Does anyone have an example using the excel texttocolumns method?
Thanks
|
|
|
|
|
One of the best pieces of advice... use the macro recorder ! Open the editor and its crystal clear how you can work with the object model to do C# code!
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
This is how I have gotten through most if the issues I have encountered, but I have been unable to convert the VBS to C# when it comes to converting text to columns
Thanks
|
|
|
|
|
I'm interfacing with the iTunes SDK and need to grab the "artwork". Writing these files to disk is quite easy as the SDK provides a method SaveArtworkToFile(string path) to write the file out to disk. I currently then turn around and read the image back in for use.
I'd really like to get around having to write out the file. Is there some way to "trick" the SDK into thinking it's writing the file to disk but instead write it to some kind of memory stream? Keep it mind that this is the only call made available to get the artwork and that it only accepts the path for writing out the file.
That's why I called it a "virtual file".
|
|
|
|
|
Matt Philmon wrote:
Keep it mind that this is the only call made available to get the artwork and that it only accepts the path for writing out the file.
Then it that case, no there isn't. If there is no function to return a pointer to the image, you're pretty much limited to writing it to a temp file and reloading it in a more accessible form.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yeah, I really guess I knew that. I was just hoping there was some arcane use of MemoryStream or some other mechanism that could give me what I need. That would be pretty cool if you could do that... somehow make that function think it's writing to disk when it's actually writing to memory.
|
|
|
|
|
Matt Philmon wrote:
somehow make that function think it's writing to disk when it's actually writing to memory.
You could use a memory-mapped file (read the MapViewOfFile API call documentation for this).
But it is really overkill.
Yes, even I am blogging now!
|
|
|
|
|
Hi,
I need to display a treeview control node with: a check box, icon, title and a bitmap under the title.
Anyone have any ideas on how to do this?
thanks,
Chuck
|
|
|
|
|
Hi, I have problems with reading xml files tha contains values with ñ char, li this:
<br />
<BaseDatos>Piña</BaseDatos><br />
this throw me an exception:
<br />
XmlDataDocument DocumentoXML =new XmlDataDocument();<br />
DataSet DS = new DataSet();<br />
DS = DocumentoXML.DataSet;<br />
DS.ReadXml("file.xml");<br />
What I need to do to deal with in this case?
Than you
La realidad no es más que impulsos eléctricos del cerebro - Morpheus
|
|
|
|
|
One way of changing encoding is to have this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
I am seeing an unusual problem, I have a main windows form that opens a form using showdialog. If there is an exception in that "subform" during a debug run the IDE shows it as being in the main form and if I break it breaks at the ShowDialog in the main form and not at the actual code that caused the exception in the sub form.
I don't see this in any other projects, any ideas? Could it be a project setting somewhere gone awry or...?
|
|
|
|
|
I take it you see a green triangle, too. This happens when the exception occured in an native API call or in another unmanaged thread. The debugger can't figure out where it happened, so it positions the indicator to the caller that spawned the message pump. This also happens for a top-level form, when the green triangle is position just after the Application.Run call (it's after because of the return address being after the function call itself, in terms of the JIT'd native code).
BTW: Congrats on receiving my 8,000th response! Just had to tell someone.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Any gift for the guy receiving your 8,000th response, Heath? Perhaps it's already in Santa's Christmas list
|
|
|
|