c++ - CEdit edit_box has hwnd null -
i have cedit control on mfc dialog:
class odbc_dialog : public cdialog { cedit sql_edit_; };
but sql_edit_ variable later in ctor has hwnd = 0x00000000;
i suspect should have value other , because has nullptr value cannot use , i'm getting runtime error when trying use it. supposed initialize variable somehow?
check if control variable mentioned in ::dodataexchange. check if resource identifier matches of control. if
::dodataexchange()
is not called, mfc framework lifecycle may broken example not calling base of overridden ::on...dialog... member function:
Comments
Post a Comment