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
Name:  sln.png
Views: 142
Size:  14.1 KB

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.

My development enviroment is Visual Studio2008 SP1.

Any help will be appreciated!

-Fan

DLLTest.zip