I have an idea for solving this problem.
Maybe you should handle all the ActiveX you have first. Such as derive a new class for each ActiceX object, and use DECLARE_DYNCREAT and IMPLEMENT_DYNCREAT ...
I still not quite sure about your problem.
for file storing, you must specific a path for your file (either do this by your self or by default path setting)