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.

DialogBox() returning -1 and GetLastError()=0 ?

Hello, I have a dialog box designed in Visual C++ 2010 SP1 resource editor and its id is IDD_DIALOG4. When I try to create it using DialogBox() API, the function returns -1 and GetLastError() returns 0. Note: WM_INITDIALOG is not being called.
Can anybody help me?