question

Tomer-9113 avatar image
0 Votes"
Tomer-9113 asked Viorel-1 answered

[MFC] [C++] serialization: saving figures' colours

hey,

I'm working on a 'Paint' project in MFC and I'm trying to save the colours of every figure.

I save the point of the objects like this:
ar << p1;

in the Serialize(CArchive& ar) function

and it works.
so I tried saving the colours the same way:


ar << bkColour;

and it doesn't work. (upon saving and loading the figures are restored just without colours.








c++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Viorel-1 avatar image
0 Votes"
Viorel-1 answered

Maybe the order and variables of '>>' do not correspond to '<<'?


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.