If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

CFileDialog::DoModal() never returns in DLL

Hello everyone.

I have problem in using CFileDialog:oModal() function in DLL.
I have no trouble in doing such function call in EXE application. Also, I have no trouble to show CColorDialog and my own dialog by using "DoModal()" functions.
To show your the issue more clearly, I attach a solution which includes 3 projects as shown below

1. The "DLL_Caller" project is to call the DLL "DLLTest.dll".
2. The "DLLTest" project is to create the DLL.
3. The "DLLTest_EXE" project has the same code as the "DLLTest" project, but a EXE version.