Windows Dialog Box not getting opened
问题 Im trying to open a Dialog box in Windows machine(using windows credential provider), when the user presses a button. i tried the below code but, dialog box is not getting opened. i have a resource "IDD_DIALOG1" and callback method "ChangePasswordProc". HWND hwndOwner = nullptr; ::DialogBox(HINST_THISDLL, MAKEINTRESOURCE(IDD_DIALOG1), hwndOwner,ChangePasswordProc); 回答1: I didn't write in Windows GUI for a looong time, but perhaps try something like this: HWND dialog = ::DialogBox(HINST