Use Inno Setup
FlyOnIT
Posts
-
Packaging Setup Files in a single File [modified] -
How to Check when a computer is connected to internetYes, but the problem isn't this. I need know where a computer is connected, how can i check it? checking with this method every second with a timer?
-
HttpWebRequest + CookieContainerI'd like to use an Async. HttpWebRequest for my application (because, i have a long loop and my GUI seem to freeze) but i have to pass a CookieContainer and retrieve it from each request, how can i do? someone can do an example? i can't find anything on the net with Cookies, thank you
-
How to detect Attempt to connect?I need detect it, or at least know when the computer is connected, i think i can use wininet, but how? adding a timer and check if it's connected every second?
-
How to Check when a computer is connected to internetI read about wininet.dll, but i'd like to know if a computer is connected as soon as is connected, how can i know it? i thought using a timer, but i don't think it's a good idea..
-
Help - Send a File via SocketPlease someone can help me?
-
Help - Send a File via SocketOk, here is the Code, what's wrong? //Client Side FileStream fstream = File.Open(txtPathFile.Text, FileMode.Open); byte[] buffer = new byte[fstream.Length]; fstream.Read(buffer, 0, buffer.Length); fstream.Close(); Send("$UploadFile," + NameFileUpload.Remove(0, NomeFileUpload.ToString().LastIndexOf(@"\")).Remove(0, 1) + "," + buffer.Length + "|"); s.Send(buffer); //Server Side else if (data.StartsWith("$UploadFile")) { string[] b = data.Split(','); string nameFile = b[1]; string size = b[2]; byte[] buffer = new byte[Int32.Parse(size)]; sock1.Receive(buffer); File.WriteAllBytes(@"C:\" +nameFile, buffer); }
-
Help - Send a File via SocketOk, here is the Code, what's wrong? //Client Side FileStream fstream = File.Open(txtPathFile.Text, FileMode.Open); byte[] buffer = new byte[fstream.Length]; fstream.Read(buffer, 0, buffer.Length); fstream.Close(); Send("$UploadFile," + NameFileUpload.Remove(0, NomeFileUpload.ToString().LastIndexOf(@"\")).Remove(0, 1) + "," + buffer.Length + "|"); s.Send(buffer); //Server Side else if (data.StartsWith("$UploadFile")) { string[] b = data.Split(','); string nameFile = b[1]; string size = b[2]; byte[] buffer = new byte[Int32.Parse(size)]; sock1.Receive(buffer); File.WriteAllBytes(@"C:\" +nameFile, buffer); }
-
Help - Send a File via SocketI'm having problem in the Server Side; How do i receive the file? and if i need the extension of the file, i have to send it with the client? and then how do i retrieve it? Thanks else if (data.StartsWith("$UploadFile")) { }
-
Help - Send a File via SocketI have a Client and a Sever, i connect the client to the server via Socket, now i'd like to send a file from the Client to the Server, i read about Socket.SendFile(fileName), but can't find how, from the server i have to receive the file using it (sendfile) in the client, i'd like to see an example, thank you!