Click here to Skip to main content
15,910,886 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using VC++ 2008 compiler with VC++ 2005, but keep compatibility with Win98 ? Pin
JudyL_MD25-Jun-08 2:03
JudyL_MD25-Jun-08 2:03 
AnswerRe: Using VC++ 2008 compiler with VC++ 2005, but keep compatibility with Win98 ? Pin
Joe Woodbury24-Jun-08 11:07
professionalJoe Woodbury24-Jun-08 11:07 
AnswerPossible solution to getting VC++ 2008 compiled apps to run on Win98... Pin
Defenestration24-Jun-08 12:24
Defenestration24-Jun-08 12:24 
Questionresource.h corruption Pin
Like2Byte24-Jun-08 4:01
Like2Byte24-Jun-08 4:01 
AnswerFound it on Code Project! Pin
Like2Byte24-Jun-08 4:50
Like2Byte24-Jun-08 4:50 
QuestionMDI child windows in the task bar Pin
Sylv3324-Jun-08 3:51
Sylv3324-Jun-08 3:51 
AnswerRe: MDI child windows in the task bar Pin
_S_R_M_24-Jun-08 4:15
_S_R_M_24-Jun-08 4:15 
Question0xC000001D "Fatal Application Error" ???? Pin
Trupti Mehta24-Jun-08 2:50
Trupti Mehta24-Jun-08 2:50 
Hello,

In eVC++ with WinCE5 on ARMV4I, the application is developed.
In my Property Sheet, in a page, on a button click the program executes the following code.
void CPPage1::GetData() {

	bool result = true;

	// CONVERT STRING TO INT
	CString csValue;
	GetDlgItem(IDC_OpNo_EDIT)->GetWindowText( csValue );
	m_opNo = atoi((char*)(LPCTSTR)csValue);

	csValue.Format(_T("%d"), m_opNo);
	AfxMessageBox(csValue);

	// Search operator no
	OperatorDetails od;
	od = g_db->GetOperDetails(m_opNo);

	CString s(_T("Map Count = "));
	s.Format(_T("%s %d \n %s %s"), s, g_db->GetOperMapCount(), _T("Page1::Got OD"), od.GetOperName());
	AfxMessageBox(s);

	if (od.GetOperatorNo() == 0 && od.GetOperName() == "") {
		AfxMessageBox(_T("Operator No Not found. Check Out!"),MB_ICONWARNING);
		result = false;
	} else if (od.GetOperName() == "") {
		AfxMessageBox(_T("Error Reading Data!"),MB_ICONWARNING);
		result = false;
	}else {
		CString nm = od.GetOperName();
		m_name = nm;
		GetDlgItem(IDC_NAME_LABEL)->SetWindowText(nm);
		AfxMessageBox(nm);
		EnableConfirm(true);
	} 

	if (result == false) {
		m_opNo = 0;
		GetDlgItem(IDC_OpNo_EDIT)->SetWindowText(_T(""));
		GetDlgItem(IDC_OpNo_EDIT)->SetFocus();
	}
	return;
}


g_db is an extern variable pointer to an object. I don't get any compiler/liner etc error or warnings. OnApply is called, everything is executed & then I get "Fatal Application Error" window saying application has performed an illegal operation & will be shut down. If problem continues contact vendor. Exception: 0xC000001D Address: 0050328.

If I avoid the above code, then I don't get this exception. Since it is a WincE with eVC application, I can't debug more to know where & what excatly the error line is. Can anyone help me know, what is illegal in the above code which happens to raise this exception.

Thanks

Terry

AnswerRe: 0xC000001D "Fatal Application Error" ???? Pin
Rajesh R Subramanian24-Jun-08 3:15
professionalRajesh R Subramanian24-Jun-08 3:15 
GeneralRe: 0xC000001D "Fatal Application Error" ???? Pin
Trupti Mehta25-Jun-08 23:08
Trupti Mehta25-Jun-08 23:08 
QuestionRe: 0xC000001D "Fatal Application Error" ???? Pin
David Crow24-Jun-08 3:17
David Crow24-Jun-08 3:17 
AnswerRe: 0xC000001D "Fatal Application Error" ???? Pin
Trupti Mehta25-Jun-08 23:18
Trupti Mehta25-Jun-08 23:18 
QuestionRe: 0xC000001D "Fatal Application Error" ???? Pin
David Crow26-Jun-08 3:36
David Crow26-Jun-08 3:36 
GeneralRe: 0xC000001D "Fatal Application Error" ???? Pin
Trupti Mehta26-Jun-08 5:54
Trupti Mehta26-Jun-08 5:54 
AnswerRe: 0xC000001D "Fatal Application Error" ???? Pin
krmed24-Jun-08 3:44
krmed24-Jun-08 3:44 
GeneralRe: 0xC000001D "Fatal Application Error" ???? Pin
Stephen Hewitt24-Jun-08 15:51
Stephen Hewitt24-Jun-08 15:51 
QuestionBitmap Deconstruction (AKA: How to get pixel values from a file) Pin
Michael Fritzius24-Jun-08 2:12
professionalMichael Fritzius24-Jun-08 2:12 
AnswerRe: Bitmap Deconstruction (AKA: How to get pixel values from a file) Pin
Nibu babu thomas24-Jun-08 2:20
Nibu babu thomas24-Jun-08 2:20 
AnswerRe: Bitmap Deconstruction (AKA: How to get pixel values from a file) Pin
SandipG 24-Jun-08 2:46
SandipG 24-Jun-08 2:46 
AnswerRe: Bitmap Deconstruction (AKA: How to get pixel values from a file) Pin
Hamid_RT25-Jun-08 23:37
Hamid_RT25-Jun-08 23:37 
QuestionCoInitialize/CoUninitialize Pin
George_George24-Jun-08 2:11
George_George24-Jun-08 2:11 
AnswerRe: CoInitialize/CoUninitialize Pin
Randor 24-Jun-08 3:32
professional Randor 24-Jun-08 3:32 
GeneralRe: CoInitialize/CoUninitialize Pin
George_George24-Jun-08 22:21
George_George24-Jun-08 22:21 
QuestionGetting problem with ADO database connection for Excel Pin
trinadh_t24-Jun-08 2:07
trinadh_t24-Jun-08 2:07 
Questionfinding os of a particular system Pin
VCProgrammer24-Jun-08 2:02
VCProgrammer24-Jun-08 2:02 

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.