Hi,

You have to debug the code and need to check what is the value returned by CreateDialogParam.You can get the error info by using GetLastError. During debug if found any then mention it...