[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 363
  • Last Modified:

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
0
proskig
Asked:
proskig
  • 2
1 Solution
 
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
 
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
 
proskigAuthor Commented:
Adjusted points from 50 to 100
0
 
proskigAuthor Commented:
Thanks a lot.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now