Click here to Skip to main content
14,363,648 members

C / C++ / MFC

 
AnswerRe: pdf995.ini in Program Files (x86) Pin
Gerry Schmitz19-Sep-19 13:21
mveGerry Schmitz19-Sep-19 13:21 
SuggestionRe: pdf995.ini in Program Files (x86) Pin
David Crow20-Sep-19 10:13
memberDavid Crow20-Sep-19 10:13 
AnswerRe: pdf995.ini in Program Files (x86) Pin
Richard MacCutchan20-Sep-19 22:04
protectorRichard MacCutchan20-Sep-19 22:04 
QuestionMFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555618-Sep-19 21:22
memberMember 1457555618-Sep-19 21:22 
SuggestionRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Richard MacCutchan18-Sep-19 21:57
protectorRichard MacCutchan18-Sep-19 21:57 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 4:00
memberMember 1457555619-Sep-19 4:00 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Richard MacCutchan19-Sep-19 6:24
protectorRichard MacCutchan19-Sep-19 6:24 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 6:36
memberMember 1457555619-Sep-19 6:36 
Thanks for replying.

It when the below function is called.. I've marked the exact line.

void MedicationDlg::OnBnClickedSaveButtonMedicationDlg(){
..........
..........
MedicineObj.ResetListControl(); /* <-----when this function was called exception was thrown*/
MedicineObj.DatabaseReload();
OnOK();

}




This functions is in 2nd dialog:
void MedicineDlg::ResetListControl() {
	m_MedListControl.DeleteAllItems(); /* <----- This is the exact line when execute exceptions was thrown*/
	int nColumnCount = m_MedListControl.GetHeaderCtrl()->GetItemCount();

	// Delete all of the columns.
	for (int i = 0; i < nColumnCount; i++)
	{
		m_MedListControl.DeleteColumn(0);
	}
}

QuestionRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
David Crow19-Sep-19 6:39
memberDavid Crow19-Sep-19 6:39 
AnswerRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 6:53
memberMember 1457555619-Sep-19 6:53 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Richard MacCutchan19-Sep-19 7:09
protectorRichard MacCutchan19-Sep-19 7:09 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 7:23
memberMember 1457555619-Sep-19 7:23 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Victor Nijegorodov19-Sep-19 7:11
memberVictor Nijegorodov19-Sep-19 7:11 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 7:21
memberMember 1457555619-Sep-19 7:21 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Victor Nijegorodov19-Sep-19 7:33
memberVictor Nijegorodov19-Sep-19 7:33 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 7:37
memberMember 1457555619-Sep-19 7:37 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Victor Nijegorodov19-Sep-19 9:12
memberVictor Nijegorodov19-Sep-19 9:12 
AnswerRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
David Crow19-Sep-19 7:47
memberDavid Crow19-Sep-19 7:47 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 7:50
memberMember 1457555619-Sep-19 7:50 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Victor Nijegorodov19-Sep-19 9:09
memberVictor Nijegorodov19-Sep-19 9:09 
SuggestionRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
David Crow19-Sep-19 10:29
memberDavid Crow19-Sep-19 10:29 
QuestionDetermining length of Switch compare Pin
ForNow18-Sep-19 16:45
memberForNow18-Sep-19 16:45 
AnswerRe: Determining length of Switch compare Pin
Peter_in_278018-Sep-19 17:49
professionalPeter_in_278018-Sep-19 17:49 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 2:32
memberForNow19-Sep-19 2:32 
AnswerRe: Determining length of Switch compare Pin
Richard MacCutchan18-Sep-19 21:55
protectorRichard MacCutchan18-Sep-19 21:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.