Fabulous!! That did it! Thanks!
:D FABULOUS!!!!! :D
Yep, that sure did the trick of cloning the resource. I was tempting to do that earlier, but I was only cloning attempting to clone it to display it, and gave up on that when my results didn't change. You gave me the insight to create a...
So I have tested this over and over again trying to add a mutex and synclocks to see if maybe I had a multithreading issue going on, and I am still stuck. After exhausting all my other options I am posting here to see if anyone is familiar with this problem or anyone has an idea on how I could...
JohnH,
Thanks once again for your must valuable insight.
You presented me with some code which showed me how to implement a asynchronous server just passing along the data which I have used to altered the way I am handling my reading to be the solution.
This is what I end up with in my server...
Hmm, but how would I send it in pieces to allow the Server to read and write at the same time. All I see that is happening here is that the Server completely receives it then sends it.
Is there a way for the server to send it as it receives it?
The code below works with no problems. Just I...
I guess I am having trouble now figuring how to break it up and only read some and transfer some so as to know when I have finally transferred the whole thing. I was doing it asynchronously when I was directly connecting the two clients, but now I may have to do it just synchronously since I am...
The idea is in my head and so is the implementation, but not the syntax :(
This is what I am trying to do:
There are 3 Parts: Client A, Client B, and the Server
Client A and Client B are both connected to the Server.
Client A is trying to send a picture to Client B through the Server.
Client...
:rolleyes: Or one dumb dumb like me forgot to make the oldscreen the same size as the new screen. I was still setting the oldscreen to the screen parameters of the machine it was running on and not the size of the screen for which it was receiving its info from.
Wow what a difference. DOH! :o...
JohnH,
Thanks once again for your most valuable insight. This is definitely a nice alternative to getdibits and setdibits that will work.
If i ever get getdibits and setdibits to work, i will compare the speed of the processing against the lockbits.
The only thing I need to figure out now is...
Here is the entire class if this will help anyone spot my error with why SetDIBits continues to return a value of 0 meaning it fails.
Please excuse the lack of comments. This is the first time I am playing with GetDIBits and SetDIBits, so I opened an application to just play around with the...
So I am trying to capture a screen and use GetDIBits to get the bytes of the screen capture for a network transfer. On the other side the bytes will be received and processed by SetDIBits for further processing.
Well maybe you can tell me what I am doing wrong here. The GetDIBits returns a...
So I started asking on here about SetDIBits and GetDIBits, but thought it was best to create a whole new thread to gain more attention since it does not have anything to do with bitblt any more!
Here is the link to the new thread!
http://www.vbdotnetforums.com/showthread.php?p=82565#post82565
Tarunlalwani,
Thanks for the input!!! I will check this out when I wake up in 7 hours. I was able to accomplish just about everything but was failing on SetDIBits. I am going to look at SetDIBits again in the morning, but may I have spent enough time with the seperate API's. I may just go...
Yeah, pretty much the same as Log Me In. I have already designed the complete managing software for my company this past year. Now I am just on the move to design a remote application to help out customers that will tie directly in to what I have already started.
Thanks for the idea though :p
So I have been flipping through websites all day trying to figure out how to do this, and no luck yet. Now I am wondering if I want to getDIBits or CreateDIBSection. I'll check back in the morning to see if anyone has any input! Goodnight :confused:
After moving on to other things and getting them to work, I am now back on this project to complete it. However I don't believe the way I was looking at it before was the correct way to go about sending the images across a network stream. I believe I am now on the right track with using the...
Ok, So I have found this code enabling me to to see how SRCCOPY and SRCINVERT works.
I am trying to send a screen capture and updates across the network.
Technically there are 3 images.
Image1 - The Original Image
Image2 - The Updated Image
Image3 - The Inverted Image of Image1 & Image2
I...
OK, so now I have changed the code to what I have found on the msdn forums so as to get the bitblt to work for a srccopy. Now I am trying to figure out how to compare the image with a previous image so as to figure out what has changed. I believe this can be done, from what I understand, the...
Where Did We End Up With This BitBlt?
Ok, I guess I am just lost, or the solution never really presented itself. I am new to this whole BitBlt subject area, and I ran into a few other examples that I got the same result on. However, I will continue with this example. I do not get an error...
I fixed my problem.
The incorrect line of code was:
HFHTechSendNextScreen.Read(TechSendScreenBytes, 0, CInt(HFHTechSendNextScreenTCP.ReceiveBufferSize))
The correct line of code is:
HFHTechSendNextScreen.Read(TechSendScreenBytes, 0, TechSendScreenBytes.Length)
Works like a charm now :)...
So it all works fine when I do it with the receiver telling the sender to send the next image. However, I would like to clear up another problem I run into. I have found away around it, but I am not sure if I can clear it up without using my workaround.
The work around that I use is a try...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.