Serialize ActiveX control

Hi,
I have SDI MFC-based application. On my form I have third-party ActiveX control. How can I save it together or separately with my document?
What I want is to save the state of the control. I can go through all properties, but may be there is an easier way how e.g. control container saves it.

Regards,
Igor
LVL 5
proskigAsked:
Who is Participating?
 
mikeblasCommented:
For a complete sample, see the OCBENCH program in my book. Or look at the source for Test Container--it ships with Visual C++.

..B ekiM
0
 
gelbertCommented:
Query control for IPersistFile. The IPersistFile interface provides methods that permit an object to be loaded from or saved to a disk file. Control should support this interface
0
 
proskigAuthor Commented:
Adjusted points from 50 to 100
0
 
proskigAuthor Commented:
Thanks a lot.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.