-
Mar 2nd, 2007, 11:16 AM
#41
Fanatic Member
-
Oct 25th, 2008, 04:36 AM
#42
New Member
Re: Remote Desktop Application Example
-
Nov 23rd, 2008, 05:00 AM
#43
New Member
Re: Remote Desktop Application Example
Originally Posted by demon.KILER
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
I have the same problem.
And I use visual studio 2008
What could i change them to?
-
Nov 23rd, 2008, 05:42 AM
#44
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
Hello,
It's been more than 2 years since I posted that code.
It's easier to do the same using remoting if you ask me now.
It takes fewer lines of code...and is much more simpler.
1.)Setup a remoting server
2.) set a remoting client
3.) In the remoting server class,make a function to take screenshot of the server and return it as a memorystream.
4.)In the remoting client,call that server function and display the picture on a picturebox. (use a timer to do it repeatedly)
It's that simple. If you have no clue about what I'm talking about....trust me and follow these steps...
1.) Search for "remoting in vb.net" on google....find how to do it...
2.) Search for "screenshot vb.net" ....you'll get the code for it somewhere online
3.) Use a timer on the remoting client and call the server's screenshot function repeatedly
4.) combine those two and rock it!! :-) (This is the best solution for beginners...not for people who ask for performance.This will not work well over the internet...it will work best only through LAN)
I'd love to help you with the code....but Unfortunately,I don't have the time to do the code and post it right now....but I will soon when I can....
Trust and try the steps mentioned above.....and Success is certainly yours!!!
Hope that helps....
Last edited by uniquegodwin; Nov 23rd, 2008 at 05:50 AM.
Godwin
Help someone else with what someone helped you!
-
Nov 25th, 2008, 02:37 AM
#45
New Member
Re: Remote Desktop Application Example
hi Dear
do you know something if i want to develop same applicatoin for web like msn messanger multiple users can view eachother desktop i think it will be interesting.
-
Apr 28th, 2009, 12:43 AM
#46
New Member
Re: Remote Desktop Application Example
hi godwin
i'm krishna i need ur newer version code ,i expect you anyway ur reply please send me ...........
i have many problem please send me zip file
-
Aug 24th, 2009, 03:16 PM
#47
Junior Member
Re: Remote Desktop Application Example
I have 3 erros and like 24 warnings! :s
Help.. Message me
-
Aug 24th, 2009, 03:16 PM
#48
Junior Member
Re: Remote Desktop Application Example
-
Aug 28th, 2009, 10:47 AM
#49
Re: Remote Desktop Application Example
For anyone who is interested in improving the speed of such a program - you should look into how programs like VNC work (VNC is a remote computer control program - www.realvnc.com). From Wikipedia's VNC article:
The server sends small rectangles of the framebuffer to the client. In its simplest form, the VNC protocol can use a lot of bandwidth, so various methods have been devised to reduce the communication overhead. For example, there are various encodings (methods to determine the most efficient way to transfer these rectangles). The VNC protocol allows the client and server to negotiate which encoding will be used. The simplest encoding, which is supported by all clients and servers, is the raw encoding where pixel data is sent in left-to-right scanline order, and after the original full screen has been transmitted, only transfers rectangles that change. This encoding works very well if only a small portion of the screen changes from one frame to the next (like a mouse pointer moving across a desktop, or text being written at the cursor), but bandwidth demands get very high if a lot of pixels change at the same time, such as when scrolling a window or viewing full-screen video.
-
Jun 21st, 2010, 01:35 AM
#50
New Member
Re: Remote Desktop Application Example
-
Jul 4th, 2010, 12:21 AM
#51
New Member
Re: Remote Desktop Application Example
Existing link to unolibs.net does't work so please use this link
http://www.codeproject.com/KB/vb/UnoLibsNet_V2.aspx
-
Nov 1st, 2010, 09:40 PM
#52
New Member
Re: Remote Desktop Application Example
how can i view the code pls..
-
Nov 13th, 2010, 03:37 PM
#53
Member
Re: Remote Desktop Application Example
i love tht code can i have in vb6 same code???
-
Dec 11th, 2011, 11:26 PM
#54
New Member
-
Aug 1st, 2012, 05:26 AM
#55
New Member
Re: Remote Desktop Application Example
i've just downloaded it :-) Will try it out soon ...!
-
Feb 5th, 2015, 02:20 PM
#56
New Member
Re: Remote Desktop Application Example
i cant find the link i have looked evrywhare on the site but cant find it but i like your idea about this its simple becuse it only needs the ip no port like also the msg option thing like ok and cancel mouse controll msg system and shut down his pc are my 3 favorite of rats dude i like it wish i could find it ps.i may maybe made some mistakes with writing this but im not english srry 4 it
-
Feb 18th, 2015, 09:32 AM
#57
Registered User
Re: Remote Desktop Application Example
-
Feb 18th, 2015, 10:10 AM
#58
Thread Starter
Fanatic Member
Re: Remote Desktop Application Example
It was not a Trojan or RAT. A RAT would run hidden but this was fully visible and open and just an example. I guess the vbforums moderators have removed the attachment. I don't have a copy of that file for myself to see the code that I posted 10 years back.
Godwin
Help someone else with what someone helped you!
-
Feb 25th, 2015, 05:56 PM
#59
Hyperactive Member
Re: Remote Desktop Application Example
where can I download this ?
-
Nov 29th, 2015, 06:50 AM
#60
Registered User
Re: Remote Desktop Application Example
Can i have the code for this app? I really really need it for my school. But i have no idea how to create it. This is exactly what i needed. Thanks!
-
Mar 21st, 2016, 08:55 PM
#61
Re: Remote Desktop Application Example
What a bummer it had to be infected with a virus :/ I really need something like this handy and i can see the SC to...
-
Oct 18th, 2016, 01:11 PM
#62
Registered User
Re: Remote Desktop Application Example
where can i download the code?
-
Feb 15th, 2017, 01:58 PM
#63
New Member
Re: Remote Desktop Application Example
Anyone have idea about multi remote display concept,to see upto 6systems in a single desktop at a time,like camera connected to tv
-
Feb 15th, 2017, 04:41 PM
#64
Re: Remote Desktop Application Example
You should try google. If you need remote pairing with devices e.g. like how Directv does you will need a Server to do such things.
Disclaimer: When code is given for example - it is merely a example. •
•
•
Unless said otherwise indicated - All Code snippets advice or otherwise that I post on this site, are expressly licensed under Creative Commons Attribution 4.0 International Please respect my copyrights.
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
|