CWinApp::OnIdle in Dll - is NOT called
-
Hi I have a MFC based Modeless dialog application [A], developed in VC++ 6.0. I have also a MFC regular dll [B], in which I have one modeless dialog as a resource. I am loading this MFC regular dll [B] from my application [A],{ Using LoadLibrary() } and displaying its modeless dialog resource. This call to dll is made on some button click of my application [A]. Also, I have overridden CWinApp::OnIdle in my MFC regular dll [B]. But the problem is Dll's OnIdle is NOT called. What could be the problem ???? One thing I have noted is when I override CWinApp::OnIdle in my MFC dialog application [A], then this function is called. So, why NOT the Dll's OnIdle function called ? Can anyone there help me get rid of this problem ? Regards, Prasad G.
-
Hi I have a MFC based Modeless dialog application [A], developed in VC++ 6.0. I have also a MFC regular dll [B], in which I have one modeless dialog as a resource. I am loading this MFC regular dll [B] from my application [A],{ Using LoadLibrary() } and displaying its modeless dialog resource. This call to dll is made on some button click of my application [A]. Also, I have overridden CWinApp::OnIdle in my MFC regular dll [B]. But the problem is Dll's OnIdle is NOT called. What could be the problem ???? One thing I have noted is when I override CWinApp::OnIdle in my MFC dialog application [A], then this function is called. So, why NOT the Dll's OnIdle function called ? Can anyone there help me get rid of this problem ? Regards, Prasad G.
Probably because OnIdle() is called when no messages are waiting in the app's message queue. Since it's the EXE that has the queue, the EXE's OnIdle() is called. --Mike-- http://home.inreach.com/mdunn/ While I can't be correct on all matters, I can make the reassuring claim that where I am inaccurate, I am at least definitively inaccurate. :love: your :bob: with :vegemite: and :beer: Sonork ID - 100.10414 AcidHelm