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. What's this?

What's this?

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
1 Posts 1 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.
  • L Offline
    L Offline
    Le Sourcier
    wrote on last edited by
    #1

    I've created an application with runs as a plugin for Microstation. My application is a DLL whose functions are called by Microstation in a specific lanaguage. if my function launch a dialog box like this definition: extern "C" __declspec(dllexport) BOOL fooSystem_showAboutBox(); implementation: BOOL fooSystem_showAboutBox() { AFX_MANAGE_STATE(AfxGetStaticModuleState()); try { theApp.showAboutBox(); } catch(...) { return FALSE; } return TRUE; } //in foo.cpp void CFooApp::showAboutBox() { CAboutDialog dlgAbout; dlgAbout.DoModal(); } then, the "about" dialog is not able to intercept any messages like WM_TIMER, and the function PreTranslateMessage is never reached. This problem is also valid for theApp. There isn't any other classes which may intercept messages before my function (maybe except one from MFC hierarchy) or implementing the virtual function PreTranslateMessage. I really don't understand this. Have you any idea about this issue ? Thanks. Firejano -- modified at 11:42 Thursday 27th October, 2005

    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