Hey guys :)
I just made a screen capture and when im trying to send it to a client and show it in a imagebox nothing happens...
is there any examples in here that could help me??
cause I searched but didnt finde anything I want..
Printable View
Hey guys :)
I just made a screen capture and when im trying to send it to a client and show it in a imagebox nothing happens...
is there any examples in here that could help me??
cause I searched but didnt finde anything I want..
How are you trying to send the data (what methods)? and is the client another PC? Can you post your "send" code?
this is the send method
savepath is the path of the pic
FileTotal is as long
File is as string
#|# as string to spilt the data from eachother
Code:Open savepath For Binary As #1
File = Input(LOF(1), 1)
Close #1
FileTotal = Len(File)
winsck.SendData "screen" & "#|#" & FileTotal
Couple of things. I am not a Winsock guru by any stretch of the imagination.
I see that you are trying to send the length of the data, but you are not sending the data. You are reading the file into a variable named File but not sending it.
Delcare File in your routine, if not already done: Dim File As String
oka and how to receive it and put it in imagebox??
Anything I write would only be copying other people's posts. Therefore, let me point you to a thread that might answer all of your questions. Some of this site's best networking ppl chimed into that post. If not, search for these keywords in the forum, you should find the answers you need: Bitmap Winsock