아래 함수안에서 화살표에서 애러 메세지가 뜹니다.
메세지내용을 설명하자면~~~
메세지박스가 출력되는 형태로 뜹니다.
내용은
Debug Assertion Failed!
Program:d:\깡통\PlusProject\Start\Start|Devug\Start.exe
File:f:\vs70builds\9466\vc\MFCATL\ship\atlmfc\include\afxwin2.inl
Line:692
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
중단A , 다시시도R , 무시I
위와 같은 메세지 박스가 출력 됩니다.
위에서 File:f:\ws.........................부분은....
File:f:\vs70builds\9466\vc\MFCATL\ship\atlmfc\include\afxwin1.inl
Line:26 이런식으로 나오기도 하던것이 여러번 수정 끝에 위와 같이 변한것입니다.
BOOL CPage1::DBExecuteSQL()
{
if (qry.Connect(1,"start.mdb") == FALSE) {
MessageBox("데이터 베이스에 연결할 수 없습니다","에러",MB_OK);
return 0;
}
char Yache[21],Namul[21],Fruit[21],Busut[21],Potato[21];
CString Yache2,Namul2,Fruit2,Busut2,Potato2;
qry.Exec("select yache,namul,fruit,busut,potato from name");
while(qry.Fetch()!=SQL_NO_DATA) {
qry.GetStr("yache",Yache);
Yache2.Format("%s",Yache);
qry.GetStr("namul",Namul);
Namul2.Format("%s",Namul);
qry.GetStr("fruit",Fruit);
Fruit2.Format("%s",Fruit);
qry.GetStr("busut",Busut);
Busut2.Format("%s",Busut);
qry.GetStr("potato",Potato);
Potato2.Format("%s",Potato);
m_list1.AddString(Yache2); //<--이부분에서 에러 메세지박스가 뜹니다.
m_list2.AddString(Namul2);
m_list3.AddString(Fruit2);
m_list4.AddString(Busut2);
m_list5.AddString(Potato2);
}
qry.Clear();
return TRUE;
}
사실 계속 동일한 에러 메세지가 나와서 여러번 코드를 수정한후에 최종적으로 이곳에서 에러 메세지가 뜨는 상황으로 왔지만~
계속 같은 메세지가 떴거든요.....mfc 함수 안에서 계속 에러가 났었는데 몇번 수정끝에 이곳 까지 왔는데~~~
지금도 mfc함수에 문제가 있는것 같은데 ... 고수님들 조언 좀 부탁드립니다.
메세지내용을 설명하자면~~~
메세지박스가 출력되는 형태로 뜹니다.
내용은
Debug Assertion Failed!
Program:d:\깡통\PlusProject\Start\Start|Devug\Start.exe
File:f:\vs70builds\9466\vc\MFCATL\ship\atlmfc\include\afxwin2.inl
Line:692
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
중단A , 다시시도R , 무시I
위와 같은 메세지 박스가 출력 됩니다.
위에서 File:f:\ws.........................부분은....
File:f:\vs70builds\9466\vc\MFCATL\ship\atlmfc\include\afxwin1.inl
Line:26 이런식으로 나오기도 하던것이 여러번 수정 끝에 위와 같이 변한것입니다.
BOOL CPage1::DBExecuteSQL()
{
if (qry.Connect(1,"start.mdb") == FALSE) {
MessageBox("데이터 베이스에 연결할 수 없습니다","에러",MB_OK);
return 0;
}
char Yache[21],Namul[21],Fruit[21],Busut[21],Potato[21];
CString Yache2,Namul2,Fruit2,Busut2,Potato2;
qry.Exec("select yache,namul,fruit,busut,potato from name");
while(qry.Fetch()!=SQL_NO_DATA) {
qry.GetStr("yache",Yache);
Yache2.Format("%s",Yache);
qry.GetStr("namul",Namul);
Namul2.Format("%s",Namul);
qry.GetStr("fruit",Fruit);
Fruit2.Format("%s",Fruit);
qry.GetStr("busut",Busut);
Busut2.Format("%s",Busut);
qry.GetStr("potato",Potato);
Potato2.Format("%s",Potato);
m_list1.AddString(Yache2); //<--이부분에서 에러 메세지박스가 뜹니다.
m_list2.AddString(Namul2);
m_list3.AddString(Fruit2);
m_list4.AddString(Busut2);
m_list5.AddString(Potato2);
}
qry.Clear();
return TRUE;
}
사실 계속 동일한 에러 메세지가 나와서 여러번 코드를 수정한후에 최종적으로 이곳에서 에러 메세지가 뜨는 상황으로 왔지만~
계속 같은 메세지가 떴거든요.....mfc 함수 안에서 계속 에러가 났었는데 몇번 수정끝에 이곳 까지 왔는데~~~
지금도 mfc함수에 문제가 있는것 같은데 ... 고수님들 조언 좀 부탁드립니다.
다음검색
댓글
댓글 리스트-
작성자홈파워킬라 작성시간 05.02.21 해당파일 (afxwin1.inl) 열어서 라인 확인 하시고 어떤 assertion인지 먼저 보셔야 할거 같은데요
-
작성자컬러링 작성자 본인 여부 작성자 작성시간 05.02.21 afxwin1.inl파일을 어떻게 열수 있나요? 위에 소스에서 정지하는데.... 또 메제지에 나온 경로는 File:f:\vs70builds.... 로 시작하는데~~~ 제 컴에서 f:는 씨디롬 입니다.
-
작성자나이트메어™ 작성시간 05.02.21 afxwin1.inl...라면 VC++을 설치한 곳에 있습니다..정확한 경로는 기억이 안나지만..{VC++DIR}\MFC\SRC 정도를 찾아보시죠..