It is giving the assert message
But its neither opening the File main application .
szlstfile is the CString object holding the path of filename.
Anybody has idea how to open a Document from any MFC dll .
An array based employee management system.
a.Should have classes like Manager, Engineer to exploit polymorphic features of C++.
b.Should keep information like name, salary etc. Designation should not be kept as a member. It should be printed polymorphically.
c.Should be a console application
d.Should display a list of options when starting the program. Options are Add, List, Search, Delete and Quit etc and implement those features.
Which one of that exactly are you having trouble with?
I one of my sample applcaiton,I hav changed the combobox in to Listbox,
After that i got in piece of code.
CAlarmCombo *pSysBox = (CAlarmCombo *)((CMainFrame *)AfxGetMainWnd())->m_SysWnd.GetDlgItem(IDC_SYSALARM);
if( pSysBox->GetCount() < 5 ) pSysBox->AddString((LPCTSTR)RGB(255,0,0));
The code is working fine with CComboBox.
The error comes in that bolded line as some USER32.dll unhandled exception.