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. ATL / WTL / STL
  4. ARRGHH!! MessageBox call from a dll

ARRGHH!! MessageBox call from a dll

Scheduled Pinned Locked Moved ATL / WTL / STL
helpc++comquestion
1 Posts 1 Posters 3 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.
  • P Offline
    P Offline
    Phil Benson
    wrote on last edited by
    #1

    Í have the following problem, my app (wtl exe)loads dll´s dynamically (also wtl NOT COM) which display dialogs(pages) on a client area of my main app (also a dialog). The problem that I´m having, is that when changing between pages I check for valid data before displaying the next/chosen page. This checking is performed in the dll(in the class that wraps the page), and on an error, should display a MessageBox. However, the messagebox is NOT Modal, and is destroyed after being visable for 1 second or so... 'I´ve even gone as far as changing my dll interface to take a HWND of the main apllication so that I can call the messagebox so... int nRet = ::MessageBox(hWndOfMainApplication,"Bollocks!", "Error!", MB_OKCANCEL | MB_TASKMODAL); I´m at my wits end and don´t know why this is happening, Any Ideas??? Thanks in advance Phil bum... and I thought I´d got rid of all the bugs :(

    Who the F*** is general failure and why is he reading my hard drive?

    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