Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

serializing a g++ application

21 views
Skip to first unread message

jbailo

unread,
Oct 25, 2003, 10:25:48 PM10/25/03
to

Is it possible to serialize a g++ application so
that it preserves the state of key
variables in the executable when shut down?

--
There are Ogg Vorbis streams @
Virgin Radio
http://www.virginradio.co.uk/thestation/listen/index.html

Wiseguy

unread,
Oct 25, 2003, 11:20:48 PM10/25/03
to
"jbailo" <jab...@earthlink.net> tried to express:

>
> Is it possible to serialize a g++ application so
> that it preserves the state of key
> variables in the executable when shut down?

Depends upon whether your objects were designed to be "serializable".
If the app wasn't specifically designed with this functionality in mind,
then the answer is "no."


jbailo

unread,
Oct 25, 2003, 11:31:17 PM10/25/03
to
-> no...@celeron.local (Wiseguy)

can you give me a pointer as to
how to serialize them...say for
instatnce the state of a Gtk
button text.

Nils O. Selåsdal

unread,
Oct 27, 2003, 3:28:54 AM10/27/03
to
>
> Is it possible to serialize a g++ application so
> that it preserves the state of key
> variables in the executable when shut down?
C/C++ does not support the concept of "serialization" as
found in e.g. Java.
You have to write your own code that saves and restores states.

--
Vennlig hilsen/Best Regards
Nils Olav Selåsdal <NOS at Utel.no>
System Engineer
UtelSystems a/s

0 new messages