Dialog Box from within a dll without MFC

This is a discussion on Dialog Box from within a dll without MFC within the C++ Programming forums, part of the General Programming Boards category; Hi all,
Can someone provide an example on how to show a Dialog Box from within a dll without using ...

Showing a Modal Dialog Box from a regular WIN32 exe works perfect. However when I try to create a Dialog Box from within a dll, the Dialog doesn't appear at all. I really don't know what I could been doing wrong, so a simple example would be highly appreciated.

When you specify NULL, the system loads the resource from the process's executable image - the .exe file. If the dialog resource does not reside with in the running exe file, you'll have to provide a non-NULL hInstance.

If the DLL is already loaded into your address space, you can use GetModuleHandle() instead of LoadLibrary()/FreeLibrary().