Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
H

h_wing

@h_wing
About
Posts
3
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Socket Program>?????
    H h_wing

    i'm make Socket program this is Receive file this img file, avi file.. but can't Receive XMLfiles this is source * Receive File info ================================================================ while(rData!=null) { byte[] rbuffer = new Byte[1024]; int rcount = rData.Receive(rbuffer, rbuffer.Length, 0); string Cm = ed.GetString(rbuffer); Cm = Cm.Substring(0, rcount); Cml = null; Cml = Cm.Split(':'); this.listBox1.Items.Add("Header Info"); this.listBox1.Items.Add("Data Type : " + Cml[0]); this.listBox1.Items.Add("Data Name : " + Cml[1]); this.listBox1.Items.Add("Data Length : " + Cml[2]); if (Cml[0] == "Binnary") { FileReceive(rData, Cml);} else if (Cml[0] == "Str") {this.listBox1.Items.Add("String Value :" + Cml[3]);} rData.Close(); rData = null;} =================================================================== * Receive file ================================================================ FileStream fout = new FileStream(@"c:\youngTemp\" + cml[1]+"1",FileMode.Create, FileAccess.Write); NetworkStream nfs = new NetworkStream(rData); long DataSize = int.Parse(cml[2]); long rby = 0; try { while(rby < DataSize) { byte[] buffer = new Byte[1024]; int i = nfs.Read(buffer, 0, buffer.Length); fout.Write(buffer, 0, i); rby += 1; } this.listBox1.Items.Add("Success ");}catch(Exception ex) { this.listBox1.Items.Add("Error"); this.listBox1.Items.Add("Error is : " + ex.ToString());} finally{ fout.Close();nfs.Close(); nfs= null;fout = null;} =====================================================================

    C# help question

  • How to winsdows service Programing????
    H h_wing

    one Windos Service is making by C#.NET when order to Stop service but Service is Some Processing... not Finish so.. i want to Message Box ("Can not Stop Serveice") ..or this service can not stop until Service is Some Processing Finish i want to make if (someprocessing finish) { service.Stop();} else wait Service.Stop(); How to coding ~~ i do not know~~!!!!!

    C# csharp tutorial question

  • How to Socket Programing...
    H h_wing

    Client --- Unix.. Server --- windows 2000 how does recognize what a data type client send to server? ................................................................. How to Know server dataType this is Receive Data from Client ??? .................................................................. client send Data server receive data .. how to konw dataType if DataType is picture or avi file than save to the other file name and same file type if DataType is sting than order to SQL Server... "select~~from~where" + string if DataType is XML file than save to XML file Please answer me.. i m Socket Programing at first

    C# database sql-server sysadmin xml tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups