you object must inherit from TObject and have a Streamer() method.
Check the page:
http://root.cern.ch/root/Using.html
and the pages it refers to. See also the Event example in $ROOTSYS/test
and also look there for the right makefile for your platform.
On how to use TMessage see $ROOTSYS/tutorials/hserv.C and hclient.C.
Cheers, Fons.
Yves Schutz wrote:
>
> Hi,
>
> To store my own objects into a TMessage object I guess that my object
> needs to be be of a given kind and must be known to root.
> How is this done?
>
> Thanks a lot .... Yves
> --
> __________________________________________________________________
> |Yves SCHUTZ (IN2P3 - CNRS) collaboration TAPS/WA98/ALICE |
> |SUBATECH |
> |Ecole des Mines de Nantes Telephone: (+33/0) 2 51 85 84 71 |
> |4, rue Alfred Kastler Fax : (+33/0) 2 51 85 84 79 |
> |F-44070 Nantes cedex 03 e-mail : yves.schutz@subatech.in2p3.fr|
> |__________________________________________________________________|
-- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248 E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910