pluggab;e protocol handler in MFC
-
Hello, I have this asynchronous pluggable protocol handler (apph) that I'm trying to integrate into a an MFC application. I've based my view on CHtmlView and call the apph using the Navigate2 method. This works as expected. Now, the apph is designed that - at initialization - you have to call a routine to set some variables (current path, ...). These are statically stored inside the apph to make them persistant for the life of the apph. The problem I'm facing is this: After a few minutes of inactivity of my MFC application, MSHTMLED.DLL gets unloaded which also unloads the apph. Whenever I try to click a link in my MFC application, it will fail from now one, as the apph was unloaded (and the static variables are gone). The apph is automatically loaded after clicking the link though, but the initialization phase is skipped of course. Question: is there any way so I can MFC in tricking not to unload my protocol handler? Thanks in advance Wim