Click here to Skip to main content
15,914,016 members
Home / Discussions / C#
   

C#

 
GeneralRe: ping use too long time Pin
haha200014-Mar-05 15:39
haha200014-Mar-05 15:39 
GeneralRe: ping use too long time Pin
Dave Kreskowiak4-Mar-05 16:15
mveDave Kreskowiak4-Mar-05 16:15 
GeneralRe: ping use too long time Pin
haha200015-Mar-05 6:08
haha200015-Mar-05 6:08 
GeneralRe: ping use too long time Pin
Dave Kreskowiak5-Mar-05 6:17
mveDave Kreskowiak5-Mar-05 6:17 
QuestionAuthorisation Code Ideas? Pin
Tom John4-Mar-05 3:18
Tom John4-Mar-05 3:18 
Generalutf8 convert.... Pin
ABBASI_RA4-Mar-05 3:07
ABBASI_RA4-Mar-05 3:07 
GeneralAuthentication/Sql Server and C# Pin
C# Angel4-Mar-05 2:56
sussC# Angel4-Mar-05 2:56 
GeneralRe: Authentication/Sql Server and C# Pin
Colin Angus Mackay4-Mar-05 6:14
Colin Angus Mackay4-Mar-05 6:14 
GeneralRe: Authentication/Sql Server and C# Pin
Anonymous15-Mar-05 10:05
Anonymous15-Mar-05 10:05 
GeneralStill no solution :( Pin
Radgar4-Mar-05 2:43
Radgar4-Mar-05 2:43 
GeneralRe: Still no solution :( Pin
Dave Kreskowiak4-Mar-05 4:28
mveDave Kreskowiak4-Mar-05 4:28 
GeneralRe: Still no solution :( Pin
Radgar4-Mar-05 8:37
Radgar4-Mar-05 8:37 
GeneralRe: Still no solution :( Pin
Dave Kreskowiak4-Mar-05 11:02
mveDave Kreskowiak4-Mar-05 11:02 
GeneralI need some information Pin
iceburnbarry4-Mar-05 2:36
iceburnbarry4-Mar-05 2:36 
GeneralRe: I need some information Pin
Dave Kreskowiak4-Mar-05 7:29
mveDave Kreskowiak4-Mar-05 7:29 
GeneralSocket and Struct Pin
James Poulose4-Mar-05 2:35
James Poulose4-Mar-05 2:35 
GeneralRe: Socket and Struct Pin
felopater4-Mar-05 4:50
felopater4-Mar-05 4:50 
hii,that's too simple in c# first add Serializable attrubite before your struct
[Serializable]
struct YourStruct
{..}if struct also contains (nested) other structs objects. thier structs also must have Serializable attrubite then
using System.Runtime.Serialization.Formatters.Binary;
using System.IO
BinaryFormatter bin=new BinaryFormatter();
MemoryStream memory=new MemoryStream();
bin.Serialize(memory, yourStructObject);
byte[]data=memory.GetBuffer();//your struct in bytes
//to Reverse operation:
memory=new MemoryStream(data);
memory.Seek(0,System.IO.SeekOrigin.Begin);
yourStructObject=(YourStruct) bin.Deserialize(memory);

marcoryos
GeneralRe: Socket and Struct Pin
James Poulose4-Mar-05 23:17
James Poulose4-Mar-05 23:17 
GeneralNetwork programming Pin
felopater4-Mar-05 1:51
felopater4-Mar-05 1:51 
GeneralRe: Network programming Pin
Colin Angus Mackay4-Mar-05 2:06
Colin Angus Mackay4-Mar-05 2:06 
GeneralRe: Network programming Pin
turbochimp4-Mar-05 11:05
turbochimp4-Mar-05 11:05 
GeneralException Handling - back into method Pin
Seraphin4-Mar-05 1:25
Seraphin4-Mar-05 1:25 
GeneralRe: Exception Handling - back into method Pin
Chamadness4-Mar-05 1:51
Chamadness4-Mar-05 1:51 
GeneralRe: Exception Handling - back into method Pin
Colin Angus Mackay4-Mar-05 2:03
Colin Angus Mackay4-Mar-05 2:03 
GeneralA perfect example where goto should be used Pin
leppie4-Mar-05 5:19
leppie4-Mar-05 5:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.