1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Create MFC dialog from dll in UI thread

Discussion in 'MFC' started by slav, Dec 19, 2007.

  1. slav

    slav New Member

    Dec 19, 2007
    Likes Received:
    Trophy Points:

    I have a dll with MFC shared library.I want to create a MFC dialog from dll.
    The dialog is blocking when it loads so I want to put it into user interface thread and create it from there.

    When I create it in the dll - it successfully created, but when I try to create it inside the ui thread - it fails (no errors ,no assertions - just terminates ).

    I suspect it has something to do with resource sharing , but i do not know wjat to do to make it work.

    Please help.


Share This Page