-
Sep 11th, 2005, 01:24 PM
#1
Thread Starter
Fanatic Member
-
Sep 11th, 2005, 02:07 PM
#2
Re: Remote Desktop Application Example
Maybe you could attach the files in .zip format as I think more members have winzip then winrar.
I only have winzip.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
-
Sep 11th, 2005, 02:11 PM
#3
Thread Starter
Fanatic Member
-
Sep 11th, 2005, 02:17 PM
#4
Re: Remote Desktop Application Example
I just looked at the link and it looks interesting. No sockets needed.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
-
Sep 11th, 2005, 02:19 PM
#5
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
yeah,Im a fan of his code... Its really great coding
Godwin
Help someone else with what someone helped you!
-
Sep 11th, 2005, 02:45 PM
#6
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
I changed it to Zip now.I hope no one has problems downloading and extracting it anymore
Godwin
Help someone else with what someone helped you!
-
Sep 12th, 2005, 01:39 AM
#7
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
hmmm...I guess not many people out here like a remote desktop
Godwin
Help someone else with what someone helped you!
-
Sep 15th, 2005, 12:29 AM
#8
Thread Starter
Fanatic Member
-
Oct 17th, 2005, 04:22 AM
#9
Junior Member
Re: Remote Desktop Application Example
Hey! great code u have here! very nice and cOOLLL!!!! : wave:
when will u release ur next version of this? especially the viewing of the screen seems slow but i think i little coding of your should do!!! im gonna wait for it!!!
-
Oct 17th, 2005, 05:05 AM
#10
Thread Starter
Fanatic Member
-
Nov 16th, 2005, 04:28 AM
#11
Junior Member
-
Nov 25th, 2005, 05:49 PM
#12
New Member
-
Nov 26th, 2005, 05:23 AM
#13
Thread Starter
Fanatic Member
-
Dec 10th, 2005, 01:59 AM
#14
Junior Member
-
Dec 10th, 2005, 06:21 AM
#15
Thread Starter
Fanatic Member
-
Dec 10th, 2005, 06:34 AM
#16
Junior Member
Re: Remote Desktop Application Example
hi there
maybe i didnt explain it so well, wish that this time i will.
your program has two sides, first one can control the second one, and i name the controlled side as client, and the side who do control and who can view the other by Server.
what im asking that how can i add new form on the client side" who is monitored by the other side" in which the client can view the server side also, i mean view its screen.
in simple word, i want both sides to have a form that they can view the other through it.
i was working on it, but really i couldnt make it better than this, i have many errors while trying to do it, so can you please post me a newer verson of it contain this, or to tell me how to do this??
many thanks bro
-
Dec 11th, 2005, 01:34 PM
#17
Thread Starter
Fanatic Member
-
Dec 12th, 2005, 08:38 AM
#18
Junior Member
Re: Remote Desktop Application Example
many thanks for replay,
i got everything now ok, but the point is sometimes i got IOException on the side i add the new form on it to view the other side screen.
also if you remember that part, i got "error 5, use another file name" in message box.
wish that you will help me in this and many thanks for you.
waiting your answer
-
Dec 12th, 2005, 02:43 PM
#19
Junior Member
Re: Remote Desktop Application Example
the main error i have now, and i think it cause all the problems that in the client class, i have IOexception, which is "Unable to open file", i tried to comment the throw statment, but also i have null reference in the following line, i think you can remember it, its a part of Client class code
Dim buffer(PacketSize - 1) As Byte
wd = fileStream.Read(buffer, 0, PacketSize)
in this line i have the exception, can you please tell me, what is the reference may has null value??
another thing, the other side view almost of the time one or two screen shots of my side, and then this exception occures.
can you please help me in this??
-
Dec 14th, 2005, 10:38 PM
#20
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
Hey..
Dont change anything in those server client class files...I didnt make them..I got them from unolibs...
http://www.codeproject.com/useritems/UnoLibsNet_V2.asp
And there is a small problem with the efficiency of my program...It is slow...and especially if you want it to work both sides at the same time,Its going to be more slow.
It captures the screen image and stores it on the c:\ on the other computer...
As soon as the file gets transferred,it requests for the next frame..
This happens continously...thats how this thing works So,if you use both sides at the same time,it would perform very badly I think
Godwin
Help someone else with what someone helped you!
-
Dec 14th, 2005, 10:39 PM
#21
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
I need to use serialization or something to make it work better I guess Ive used a childs method now.
Godwin
Help someone else with what someone helped you!
-
Dec 14th, 2005, 10:42 PM
#22
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
i got everything now ok, but the point is sometimes i got IOException on the side i add the new form on it to view the other side screen.
Did you use the event handler which listens for the message? Did you declare a new instance of the class for listening??
Godwin
Help someone else with what someone helped you!
-
Dec 14th, 2005, 10:47 PM
#23
Re: Remote Desktop Application Example
You'd have to check which byte has been changed, and only send the changed bytes. That's how W2K's Terminal Server is. It is super fast for most things.
-
Dec 15th, 2005, 07:29 PM
#24
Junior Member
Re: Remote Desktop Application Example
hi,
wish you help me in this part, cause i need your help here so hard.
what i was looking forward is to make server broadcast his screen for multi clients,i mean that server will display its screen on two clients monitor's or more, but at least im testing the applicatino on two clients.
i tried to send them the two files in same two messages,
clsc.SendMessage(arr(0).ToString, 1234, "readyforcap")
clsc.SendMessage(arr(1).ToString, 1234, "readyforcap")
clsc.SendFiles(arr(0).ToString, 1234, dw.FileNames)
clsc.SendFiles(arr(1).ToString, 1234, dw.FileNames)
the arr array contains the clients IP's which i will broadcast my screen to.
this caused many exceptions for me, the first one said "Stack Empty", and many other, most of them in the function " SendFilesTS()".
can you please help me in this, and tell me how can i solve this??
many thanks
-
Dec 18th, 2005, 12:04 AM
#25
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
sendfilesTS???
Ill just reply u soon buddy...Im in my office right now...in a hurry..Ill get back soon
Godwin
Help someone else with what someone helped you!
-
Jan 6th, 2006, 04:17 AM
#26
Member
Re: Remote Desktop Application Example
this is great nice work i think this is extremely good for your first try.
-
Jan 6th, 2006, 04:28 AM
#27
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
Thanks Marc
Godwin
Help someone else with what someone helped you!
-
Mar 6th, 2006, 07:04 AM
#28
Re: Remote Desktop Application Example
Hi,
It's really one the best Application i have seen................do you have any idea about how to go for Keylogger thing........
Regards,
Ritesh
-
Mar 10th, 2006, 01:40 PM
#29
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
Hi,
Its very simple to make a keylogger if you use an API
Godwin
Help someone else with what someone helped you!
-
Mar 10th, 2006, 01:41 PM
#30
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
But I guess vbforums will not support u making such stuff
Godwin
Help someone else with what someone helped you!
-
Jul 14th, 2006, 04:33 AM
#31
Hyperactive Member
Re: Remote Desktop Application Example
I executed the application "remote desktop server " and now I have problems when I start the pc.
it shows me the window for debugger this application. it has installed something to me in the start??
ERROR:
'svchost.exe': se cargó 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', no se pueden cargar símbolos.
'svchost.exe': se cargó 'C:\Archivos de programa\svchost.exe', no se pueden cargar símbolos.
'svchost.exe': se cargó 'c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll' , no se pueden cargar símbolos.
'svchost.exe': se cargó 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', no se pueden cargar símbolos.
'svchost.exe': se cargó 'c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll', no se pueden cargar símbolos.
'svchost.exe': se cargó 'c:\windows\assembly\gac\microsoft.visualbasic\7.0.5000.0__b03f5f7f11d50a3a\microsoft.visualbasic.dl l', no se pueden cargar símbolos.
'svchost.exe': se cargó 'c:\windows\assembly\gac\mscorlib.resources\1.0.5000.0_es_b77a5c561934e089\mscorlib.resources.dll', no se pueden cargar símbolos.
Excepción no controlada del tipo 'System.TypeInitializationException' en svchost.exe
Información adicional: Se inició una excepción en el inicializador de tipo de "System.Net.Sockets.Socket"
Some help?
Last edited by anna7; Jul 14th, 2006 at 06:27 AM.
-
Jul 16th, 2006, 04:00 AM
#32
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
You have problems when you start your pc?
I will check the code again Anna,please keep me updated if you still have some problem...
Godwin
Help someone else with what someone helped you!
-
Jul 16th, 2006, 05:00 AM
#33
Hyperactive Member
Re: Remote Desktop Application Example
Yes I still have problems.
I don't know if it has to see something, but since I tried this code appears this message "You're under attack" when start the pc also, and I cannot eliminate it.
regards,
Anna
-
Jul 16th, 2006, 05:07 AM
#34
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
I have recompiled the server code also..If possible,contact me on any IM ..Ill help you online...
Btw,yes you're right...there was an executable called svchost.exe..I really dont know how it got in there...I've fully freshly recompiled the code and uploaded.
If you have more problems,try contacting me online.
Thanks
Godwin
Help someone else with what someone helped you!
-
Jul 16th, 2006, 07:49 AM
#35
Hyperactive Member
Re: Remote Desktop Application Example
I have solved the problem. Ultimately I found the copy of the file , what "svchost.exe" had create it. This one was the responsible of all the problems and the message: "You're under attack"
I deactivated this service and delete the file that it had created.
regards,
Anna
-
Jul 16th, 2006, 08:56 AM
#36
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
Godwin
Help someone else with what someone helped you!
-
Jan 21st, 2007, 12:48 PM
#37
Hyperactive Member
Re: Remote Desktop Application Example
thx for this code I own U
VS 2005 .....Framework SDK 3.0
"Its mostly the brave one who choose to not fight"
-
Jan 21st, 2007, 12:55 PM
#38
Hyperactive Member
Re: Remote Desktop Application Example
but I have this error and I cannot see any thing wrong with that line
VB Code:
wd = Client.Receive(buffer, PacketSize, Sockets.SocketFlags.None)
Error 42 Overload resolution failed because no accessible 'Receive' can be called without a narrowing conversion:
'Public Function Receive(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Argument matching parameter 'buffers' narrows from '1-dimensional array of Byte' to 'System.Collections.Generic.IList(Of System.ArraySegment(Of Byte))'.
'Public Function Receive(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Argument matching parameter 'socketFlags' narrows from 'Long' to 'System.Net.Sockets.SocketFlags'.
'Public Function Receive(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Argument matching parameter 'errorCode' narrows from 'System.Net.Sockets.SocketFlags' to 'System.Net.Sockets.SocketError'.
'Public Function Receive(buffer() As Byte, size As Integer, socketFlags As System.Net.Sockets.SocketFlags) As Integer': Argument matching parameter 'size' narrows from 'Long' to 'Integer'. C:\Documents and Settings\TEMP\Desktop\Remote Desktop Server\Remote Desktop Server\ServerClass.vb 192 22 WindowsApplication2
VB Code:
wd = Client.Receive(buffer, PacketSize, Sockets.SocketFlags.None)
Error 41 Overload resolution failed because no accessible 'Receive' can be called without a narrowing conversion:
'Public Function Receive(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Argument matching parameter 'buffers' narrows from '1-dimensional array of Byte' to 'System.Collections.Generic.IList(Of System.ArraySegment(Of Byte))'.
'Public Function Receive(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Argument matching parameter 'socketFlags' narrows from 'Long' to 'System.Net.Sockets.SocketFlags'.
'Public Function Receive(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Argument matching parameter 'errorCode' narrows from 'System.Net.Sockets.SocketFlags' to 'System.Net.Sockets.SocketError'.
'Public Function Receive(buffer() As Byte, size As Integer, socketFlags As System.Net.Sockets.SocketFlags) As Integer': Argument matching parameter 'size' narrows from 'Long' to 'Integer'. C:\Documents and Settings\TEMP\Desktop\Remote Desktop Server\Remote Desktop Server\ServerClass.vb 189 18 WindowsApplication2
VB Code:
client.Send(buffer, wd, Sockets.SocketFlags.None)
Error 3 Overload resolution failed because no accessible 'Send' can be called without a narrowing conversion:
'Public Function Send(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Argument matching parameter 'buffers' narrows from '1-dimensional array of Byte' to 'System.Collections.Generic.IList(Of System.ArraySegment(Of Byte))'.
'Public Function Send(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Argument matching parameter 'socketFlags' narrows from 'Long' to 'System.Net.Sockets.SocketFlags'.
'Public Function Send(buffers As System.Collections.Generic.IList(Of System.ArraySegment(Of Byte)), socketFlags As System.Net.Sockets.SocketFlags, ByRef errorCode As System.Net.Sockets.SocketError) As Integer': Argument matching parameter 'errorCode' narrows from 'System.Net.Sockets.SocketFlags' to 'System.Net.Sockets.SocketError'.
'Public Function Send(buffer() As Byte, size As Integer, socketFlags As System.Net.Sockets.SocketFlags) As Integer': Argument matching parameter 'size' narrows from 'Long' to 'Integer'. C:\Documents and Settings\TEMP\Desktop\Remote Desktop Server\Remote Desktop Server\ClientClass.vb 79 13 WindowsApplication2
VS 2005 .....Framework SDK 3.0
"Its mostly the brave one who choose to not fight"
-
Jan 21st, 2007, 01:03 PM
#39
Hyperactive Member
Re: Remote Desktop Application Example
Any way I don't need those functions thx
VS 2005 .....Framework SDK 3.0
"Its mostly the brave one who choose to not fight"
-
Jan 22nd, 2007, 06:50 PM
#40
Re: Remote Desktop Application Example
And next version will also give you the power to send keyboard events...In this version,only mouse events are working
You might try using this API:
VB Code:
Public Declare Function apiAttachThreadInput Lib "user32" Alias "AttachThreadInput" (ByVal idAttach As Integer, ByVal idAttachTo As Integer, ByVal fAttach As Integer) As Integer
To send keys to more than one window (x) at a time.
I'm not sure if you can use it in this situation.
Oh, and no more attacking PC's, someone might think you're a terrorist! lol
I don't know if it has to see something, but since I tried this code appears this message "You're under attack" when start the pc also, and I cannot eliminate it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|