Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Overidden CWinApp::OpenDocumentFile does not get called

$
0
0

Hi,

I am using VS 2010.

I have an MFC executable (MDI app with multi-document tempates) and I have overridden the CWinApp::OpenDocumentFile member, becuase I needed some custom validation.  This works fine.  Now I have an MFC Extension DLL that is loaded dynamically in the app.  This extension DLL calls:

       AfxGetApp()->OpenDocumentFile(...)

But the thing is that the above call is not going through my overridden CWinApp::OpenDocumentFile.  But I need it to go through my overridden CWinApp::OpenDocumentFile.   What am I doing wrong and what should I do?

Thanks in advance.


Mizan Rahman


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>