Probably the best bet would be to write the individual attributes to respective
database columns. It keeps a few things simpler. It would also allow you to
update the database from multible sources (many threads, or many users on the
database).
Other wise, you would have to serialize the obj
Thi Cao writes:
> All,
>
> I created a C++ class containing a variety of member variables of varying
> types such as float, int, char *, etc. If I instantiate an object of this
> class, how should I insert this object into my database table? I can
> retrieve the individual members and insert th