TaLF
December 20th, 2002, 09:09 PM
Hi,
I did a DLL and it's a shell extension for the context menu of Explorer. Everything works perfect, but I can't show my dialog resources (this dialog is compiled into the dll).
When I load a string resource like this:
CComModule _Module;
LoadString(_Module.GetModuleInstance(), IDS_STRING, szMsg, MAX_PATH));
... the string is loaded into szMsg.
But When I try to load my Dialog:
DialogBox(_Module.GetModuleInstance(), MAKEINTRESOURCE(IDD_DIALOG1), 0, WinProcTest);
and no error seems to apears (DialogBox doesn't return -1)
But the WM_INITDIALOG (of WinProcTest) is never called.
If you have any idea, please help me.
thanks in advance...
I did a DLL and it's a shell extension for the context menu of Explorer. Everything works perfect, but I can't show my dialog resources (this dialog is compiled into the dll).
When I load a string resource like this:
CComModule _Module;
LoadString(_Module.GetModuleInstance(), IDS_STRING, szMsg, MAX_PATH));
... the string is loaded into szMsg.
But When I try to load my Dialog:
DialogBox(_Module.GetModuleInstance(), MAKEINTRESOURCE(IDD_DIALOG1), 0, WinProcTest);
and no error seems to apears (DialogBox doesn't return -1)
But the WM_INITDIALOG (of WinProcTest) is never called.
If you have any idea, please help me.
thanks in advance...