I use SDI for ODBC application and create my own login dialog. When running the application, the login dialog shows up first, then I tried to put wait cursor (CWaitCursor) before I called CDatabase.Open()(in document) but failed to get waitcursor. Can someone tell me why? Thanks.