Click here to Skip to main content
15,917,061 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello once again,

I want to create a dialog which is exported from MFC Extension DLL.

Calling "DoModal();" in exported function "RunDialog();" works fine, but I need modeless dialog. Calling "Create(IDD);" results into empty non-responding dialog (Yet with the resolution of defined resource template).
Last error is NULL and "Create(IDD);" returns 1.

Shall I create new thread and then call "DoModal();" ?

Thank you for your answers.
Posted

1 solution

Have you already tried
to manipulate the resource source[^]
by your RunDialog(..) ? :)
 
Share this answer
 
Comments
Niklas L 5-Sep-10 15:25pm    
Using the AFX_MANAGE_STATE macro, is the way to go. It handles a few more issues when dealing with dll's.
Im2N00By 12-Sep-10 8:01am    
I must have a mistake somewhere. I was using AFX_MANAGE_STATE indeed. I will create empty dialog without any functionality and export it. I will see how it is going to work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900