Why OnClosing Doc. Containing my ActiveX Ctrl asks me to save. Whereas its already saved!!!!!

J

Jack Smith

hi!

I have a ActiveX control Written in VC7.1 for Word. when i insert my control
into Word and close the doc after saving the document, it again asks me Do
you want to save the changes?

But on thing to be noted is that I handled the event DocumentBeforeClose and
in this i verify that the document is saved or not. and the doc. is not
modified but Word warns me. I dont know why?

I also pass fClearDirty = TRUE in the following function call.

Anybody there to solve my problem.

HRESULT IPersistStreamInit_Save(LPSTREAM pStm, BOOL fClearDirty
,ATL_PROPMAP_ENTRY* pMap)





Thanks

Jack
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top