Create MFC dialog from dll in UI thread

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

  1. slav

    slav New Member

    Joined:
    Dec 19, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello.

    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.

    Thanks
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice