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

C#

 
GeneralRe: Regular Expressions Pin
James T. Johnson29-Mar-02 20:55
James T. Johnson29-Mar-02 20:55 
GeneralRe: Regular Expressions Pin
Christian Graus31-Mar-02 13:32
protectorChristian Graus31-Mar-02 13:32 
GeneralUpdate The Screen Pin
Nick Parker29-Mar-02 9:43
protectorNick Parker29-Mar-02 9:43 
GeneralRe: Update The Screen Pin
James T. Johnson29-Mar-02 21:05
James T. Johnson29-Mar-02 21:05 
GeneralRe: Update The Screen Pin
Nick Parker31-Mar-02 17:00
protectorNick Parker31-Mar-02 17:00 
GeneralRe: Update The Screen Pin
James T. Johnson31-Mar-02 17:35
James T. Johnson31-Mar-02 17:35 
GeneralSocket Communications between C++ and C# Pin
Jason Douglas29-Mar-02 6:55
professionalJason Douglas29-Mar-02 6:55 
GeneralRe: Socket Communications between C++ and C# Pin
James T. Johnson29-Mar-02 21:11
James T. Johnson29-Mar-02 21:11 
When you serialize a class extra data is written to tell the runtime what type of object is being serialized.

I have no idea if MS put this functionality in but you can look to see if you can work something up between the StructLayout attribute (normally set to Sequential) and the MarshalAs attribute. Then try getting a byte[] array with that data.

I just thought of a hack that might work; create a struct, with the first and last elements being an int containing magic numbers; serialize the data to a MemoryStream, then retrieve the bytes from it, using only the data between your magic numbers to send across the wire. Like I said its a hack, and its entirely dependent on how the binary formatter serializes data (assuming it serializes the data in the same order it is in your struct).

James

Sonork ID: 100.11138 - Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971

Generalconverting images Pin
29-Mar-02 4:21
suss29-Mar-02 4:21 
GeneralRe: converting images Pin
James T. Johnson29-Mar-02 21:22
James T. Johnson29-Mar-02 21:22 
GeneralRe: converting images Pin
vaMope1-Apr-02 7:41
vaMope1-Apr-02 7:41 
QuestionMemDC replacement? Pin
Zombies with Coffee, LLC29-Mar-02 4:14
professionalZombies with Coffee, LLC29-Mar-02 4:14 
AnswerRe: MemDC replacement? Pin
Zombies with Coffee, LLC29-Mar-02 4:25
professionalZombies with Coffee, LLC29-Mar-02 4:25 
GeneralSOAP serialization is too slow to accept Pin
29-Mar-02 1:52
suss29-Mar-02 1:52 
GeneralRe: SOAP serialization is too slow to accept Pin
Tim Smith29-Mar-02 2:18
Tim Smith29-Mar-02 2:18 
GeneralRe: SOAP serialization is too slow to accept Pin
29-Mar-02 2:58
suss29-Mar-02 2:58 
GeneralRe: SOAP serialization is too slow to accept Pin
Stan Shannon29-Mar-02 2:26
Stan Shannon29-Mar-02 2:26 
GeneralRe: SOAP serialization is too slow to accept Pin
James T. Johnson29-Mar-02 3:25
James T. Johnson29-Mar-02 3:25 
QuestionHow can i get the local time? Pin
29-Mar-02 0:18
suss29-Mar-02 0:18 
AnswerRe: How can i get the local time? Pin
Mazdak29-Mar-02 0:18
Mazdak29-Mar-02 0:18 
GeneralRe: How can i get the local time? Pin
29-Mar-02 1:57
suss29-Mar-02 1:57 
GeneralPrintPreview Dialog Pin
Mazdak29-Mar-02 0:01
Mazdak29-Mar-02 0:01 
GeneralRe: PrintPreview Dialog Pin
James T. Johnson29-Mar-02 21:24
James T. Johnson29-Mar-02 21:24 
GeneralRe: PrintPreview Dialog Pin
Mazdak29-Mar-02 22:35
Mazdak29-Mar-02 22:35 
GeneralRe: PrintPreview Dialog Pin
James T. Johnson29-Mar-02 22:46
James T. Johnson29-Mar-02 22:46 

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.