Click here to Skip to main content
15,900,511 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: A perfect example where goto should be used Pin
Dave Kreskowiak4-Mar-05 7:28
mveDave Kreskowiak4-Mar-05 7:28 
GeneralRe: A perfect example where goto should be used Pin
turbochimp4-Mar-05 11:13
turbochimp4-Mar-05 11:13 
GeneralRe: A perfect example where goto should be used Pin
Rob Graham4-Mar-05 11:39
Rob Graham4-Mar-05 11:39 
GeneralRe: A perfect example where goto should be used Pin
turbochimp5-Mar-05 6:10
turbochimp5-Mar-05 6:10 
GeneralRe: A perfect example where goto should be used Pin
leppie4-Mar-05 11:49
leppie4-Mar-05 11:49 
GeneralRe: A perfect example where goto should be used Pin
Dave Kreskowiak4-Mar-05 16:08
mveDave Kreskowiak4-Mar-05 16:08 
GeneralRe: A perfect example where goto should be used Pin
Rob Graham4-Mar-05 17:05
Rob Graham4-Mar-05 17:05 
GeneralRe: A perfect example where goto should be used Pin
turbochimp5-Mar-05 6:12
turbochimp5-Mar-05 6:12 
GeneralC# / Oracle -->Getting ByteArray from field(VARCHAR(250) Pin
Anonymous4-Mar-05 1:03
Anonymous4-Mar-05 1:03 

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.