Browse - programming tips - assert on line 246 of winocc cppDate: 2010jan18 Language: C/C++ Q. Why is my MFC program asserting at line 246 of winocc.cpp ? A. You probably forgot to call: CDialog::OnInitDialog(); at the start of your classes OnInitDialog() method. It should look like this: BOOL CMyDlg::OnInitDialog() { CDialog::OnInitDialog(); // ... Do your stuff ... return TRUE; } Declared in the .h file as: virtual BOOL OnInitDialog();
Add a commentSign in to add a comment |