Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CWinApp::OnIdle in Dll - is NOT called

CWinApp::OnIdle in Dll - is NOT called

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestionlearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DataPrasad
    wrote on last edited by
    #1

    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.

    M 1 Reply Last reply
    0
    • D DataPrasad

      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.

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups