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:

https://social.msdn.microsoft.com/forums/en-us/872b8e39-db53-4635-87a8-42b2235a43d9/dodataexchange-not-called?forum=vclanguage


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -