Dear all,

I'm new to the .Net CF and am facing some problem sending objects via TCP
socket. Can anyone please advise how I can convert an object to bytes() so
that I can send over TCP socket?

Thanks.

--Simon Teng

Re: How to Serialize and DeSerialize? by Alex

Alex
Wed Oct 06 17:57:58 CDT 2004

You need to write your own serialization routine using BinaryWriter and
BinaryReader classes

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Simon Says" <tengsimon@hotmail.com> wrote in message
news:e75n2%236qEHA.3520@TK2MSFTNGP11.phx.gbl...
> Dear all,
>
> I'm new to the .Net CF and am facing some problem sending objects via TCP
> socket. Can anyone please advise how I can convert an object to bytes() so
> that I can send over TCP socket?
>
> Thanks.
>
> --Simon Teng
>
>



Re: How to Serialize and DeSerialize? by Simon

Simon
Thu Oct 07 17:37:48 CDT 2004

Can you kindly provide some sample or could you point me to any links for
reference.

--Simon Teng

"Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
news:%23Qjmsf$qEHA.2340@TK2MSFTNGP11.phx.gbl...
> You need to write your own serialization routine using BinaryWriter and
> BinaryReader classes
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Simon Says" <tengsimon@hotmail.com> wrote in message
> news:e75n2%236qEHA.3520@TK2MSFTNGP11.phx.gbl...
> > Dear all,
> >
> > I'm new to the .Net CF and am facing some problem sending objects via
TCP
> > socket. Can anyone please advise how I can convert an object to bytes()
so
> > that I can send over TCP socket?
> >
> > Thanks.
> >
> > --Simon Teng
> >
> >
>
>



Re: How to Serialize and DeSerialize? by Alex

Alex
Thu Oct 07 18:39:02 CDT 2004

Please, take a look at my sample here
http://www.alexfeinman.com/download.asp?doc=ColorScribble.zip
The ColorStroke class demonstrates how to make a class (or struct)
self-serializable.
This sample is part of an article on serialization in CF which I can't find
time to finish :(

--
Alex Feinman

---
Visit http://www.opennetcf.org
"Simon Says" <tengsimon@hotmail.com> wrote in message
news:uFoyu6LrEHA.3748@TK2MSFTNGP09.phx.gbl...
> Can you kindly provide some sample or could you point me to any links for
> reference.
>
> --Simon Teng
>
> "Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
> news:%23Qjmsf$qEHA.2340@TK2MSFTNGP11.phx.gbl...
>> You need to write your own serialization routine using BinaryWriter and
>> BinaryReader classes
>>
>> --
>> Alex Feinman
>> ---
>> Visit http://www.opennetcf.org
>> "Simon Says" <tengsimon@hotmail.com> wrote in message
>> news:e75n2%236qEHA.3520@TK2MSFTNGP11.phx.gbl...
>> > Dear all,
>> >
>> > I'm new to the .Net CF and am facing some problem sending objects via
> TCP
>> > socket. Can anyone please advise how I can convert an object to bytes()
> so
>> > that I can send over TCP socket?
>> >
>> > Thanks.
>> >
>> > --Simon Teng
>> >
>> >
>>
>>
>
>



Re: How to Serialize and DeSerialize? by Simon

Simon
Fri Oct 08 08:33:34 CDT 2004

Alex, thanks for your sample.

--Simon Teng

"Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
news:Oid$TbMrEHA.1152@TK2MSFTNGP11.phx.gbl...
> Please, take a look at my sample here
> http://www.alexfeinman.com/download.asp?doc=ColorScribble.zip
> The ColorStroke class demonstrates how to make a class (or struct)
> self-serializable.
> This sample is part of an article on serialization in CF which I can't
find
> time to finish :(
>
> --
> Alex Feinman
>
> ---
> Visit http://www.opennetcf.org
> "Simon Says" <tengsimon@hotmail.com> wrote in message
> news:uFoyu6LrEHA.3748@TK2MSFTNGP09.phx.gbl...
> > Can you kindly provide some sample or could you point me to any links
for
> > reference.
> >
> > --Simon Teng
> >
> > "Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
> > news:%23Qjmsf$qEHA.2340@TK2MSFTNGP11.phx.gbl...
> >> You need to write your own serialization routine using BinaryWriter and
> >> BinaryReader classes
> >>
> >> --
> >> Alex Feinman
> >> ---
> >> Visit http://www.opennetcf.org
> >> "Simon Says" <tengsimon@hotmail.com> wrote in message
> >> news:e75n2%236qEHA.3520@TK2MSFTNGP11.phx.gbl...
> >> > Dear all,
> >> >
> >> > I'm new to the .Net CF and am facing some problem sending objects via
> > TCP
> >> > socket. Can anyone please advise how I can convert an object to
bytes()
> > so
> >> > that I can send over TCP socket?
> >> >
> >> > Thanks.
> >> >
> >> > --Simon Teng
> >> >
> >> >
> >>
> >>
> >
> >
>
>