Click here to Skip to main content
14,332,387 members

C / C++ / MFC

 
AnswerRe: pdf995.ini in Program Files (x86) Pin
Gerry Schmitz19-Sep-19 12:21
mveGerry Schmitz19-Sep-19 12:21 
SuggestionRe: pdf995.ini in Program Files (x86) Pin
David Crow20-Sep-19 9:13
memberDavid Crow20-Sep-19 9:13 
AnswerRe: pdf995.ini in Program Files (x86) Pin
Richard MacCutchan20-Sep-19 21:04
protectorRichard MacCutchan20-Sep-19 21:04 
QuestionMFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555618-Sep-19 20:22
memberMember 1457555618-Sep-19 20:22 
SuggestionRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Richard MacCutchan18-Sep-19 20:57
protectorRichard MacCutchan18-Sep-19 20:57 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 3:00
memberMember 1457555619-Sep-19 3:00 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Richard MacCutchan19-Sep-19 5:24
protectorRichard MacCutchan19-Sep-19 5:24 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 5:36
memberMember 1457555619-Sep-19 5: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 5:39
memberDavid Crow19-Sep-19 5:39 
AnswerRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 5:53
memberMember 1457555619-Sep-19 5:53 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Richard MacCutchan19-Sep-19 6:09
protectorRichard MacCutchan19-Sep-19 6:09 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 6:23
memberMember 1457555619-Sep-19 6:23 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Victor Nijegorodov19-Sep-19 6:11
memberVictor Nijegorodov19-Sep-19 6:11 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 6:21
memberMember 1457555619-Sep-19 6:21 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Victor Nijegorodov19-Sep-19 6:33
memberVictor Nijegorodov19-Sep-19 6:33 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 6:37
memberMember 1457555619-Sep-19 6:37 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Victor Nijegorodov19-Sep-19 8:12
memberVictor Nijegorodov19-Sep-19 8:12 
AnswerRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
David Crow19-Sep-19 6:47
memberDavid Crow19-Sep-19 6:47 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 6:50
memberMember 1457555619-Sep-19 6:50 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Victor Nijegorodov19-Sep-19 8:09
memberVictor Nijegorodov19-Sep-19 8:09 
SuggestionRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
David Crow19-Sep-19 9:29
memberDavid Crow19-Sep-19 9:29 
QuestionDetermining length of Switch compare Pin
ForNow18-Sep-19 15:45
memberForNow18-Sep-19 15:45 
AnswerRe: Determining length of Switch compare Pin
Peter_in_278018-Sep-19 16:49
professionalPeter_in_278018-Sep-19 16:49 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 1:32
memberForNow19-Sep-19 1:32 
AnswerRe: Determining length of Switch compare Pin
Richard MacCutchan18-Sep-19 20:55
protectorRichard MacCutchan18-Sep-19 20: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.