Click here to Skip to main content
15,887,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCMYK values Pin
S p k 52129-Jun-09 20:56
S p k 52129-Jun-09 20:56 
AnswerRe: CMYK values Pin
Nuri Ismail29-Jun-09 21:19
Nuri Ismail29-Jun-09 21:19 
GeneralRe: CMYK values Pin
S p k 52129-Jun-09 21:57
S p k 52129-Jun-09 21:57 
GeneralRe: CMYK values Pin
Nuri Ismail29-Jun-09 22:04
Nuri Ismail29-Jun-09 22:04 
AnswerRe: CMYK values Pin
Chris Losinger30-Jun-09 10:24
professionalChris Losinger30-Jun-09 10:24 
GeneralRe: CMYK values Pin
Nuri Ismail30-Jun-09 20:42
Nuri Ismail30-Jun-09 20:42 
AnswerRe: CMYK values Pin
Alan Balkany1-Jul-09 4:14
Alan Balkany1-Jul-09 4:14 
QuestionDebug Assertion Pin
Davitor29-Jun-09 20:42
Davitor29-Jun-09 20:42 
Hi All

I am geting debug assertion failed Line 3232 in file dbcore.cpp.Code is here
Database database; 
	try
	{
		if(database.OpenEx(_T("Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=;User=root; Password=root;Option=3;"), CDatabase::noOdbcDialog))   
		{	        
			AfxMessageBox("Connection Successfully");

			CString szSql = "SHOW DATABASES";

CRecordset rs(&database);
rs.Open( CRecordset::forwardOnly, szSql);
			
while (!rs.IsEOF())
{
  CString szBuf;
				
  rs.GetFieldValue("DATABASE", szBuf);

  rs.MoveNext();
}

rs.Close();

		}
	}
	catch(CException *e)
	{
	AfxMessageBox("Connection Failed");	
	}

i am geting assertion in this line
rs.Open( CRecordset::forwardOnly, szSql);
Debug assertion failed Line  3232 in file dbcore.cpp.

I see line 3232 in dbcore.cpp file.There i found this syntax
ASSERT(m_nFields != 0);

Can any one tell how can i solve that debug assertion.
Plz help me
AnswerRe: Debug Assertion Pin
Madhu Nair29-Jun-09 20:59
Madhu Nair29-Jun-09 20:59 
GeneralRe: Debug Assertion Pin
Davitor29-Jun-09 21:12
Davitor29-Jun-09 21:12 
AnswerRe: Debug Assertion Pin
«_Superman_»29-Jun-09 21:07
professional«_Superman_»29-Jun-09 21:07 
GeneralRe: Debug Assertion Pin
Davitor29-Jun-09 21:14
Davitor29-Jun-09 21:14 
GeneralRe: Debug Assertion Pin
CPallini29-Jun-09 21:37
mveCPallini29-Jun-09 21:37 
GeneralRe: Debug Assertion Pin
Davitor29-Jun-09 21:51
Davitor29-Jun-09 21:51 
GeneralRe: Debug Assertion Pin
CPallini29-Jun-09 21:56
mveCPallini29-Jun-09 21:56 
GeneralRe: Debug Assertion Pin
Davitor29-Jun-09 22:08
Davitor29-Jun-09 22:08 
AnswerRe: Debug Assertion Pin
Stuart Dootson29-Jun-09 22:32
professionalStuart Dootson29-Jun-09 22:32 
GeneralRe: Debug Assertion Pin
Davitor29-Jun-09 23:05
Davitor29-Jun-09 23:05 
GeneralRe: Debug Assertion Pin
CPallini29-Jun-09 23:34
mveCPallini29-Jun-09 23:34 
GeneralRe: Debug Assertion [modified] Pin
Stuart Dootson30-Jun-09 2:27
professionalStuart Dootson30-Jun-09 2:27 
GeneralRe: Debug Assertion Pin
Davitor30-Jun-09 20:53
Davitor30-Jun-09 20:53 
GeneralRe: Debug Assertion Pin
Davitor8-Jul-09 18:16
Davitor8-Jul-09 18:16 
GeneralRe: Debug Assertion Pin
Stuart Dootson9-Jul-09 0:31
professionalStuart Dootson9-Jul-09 0:31 
QuestionHow to handle VSFlexGrid's OnPaste event ? Pin
prasadgates29-Jun-09 20:29
prasadgates29-Jun-09 20:29 
AnswerRe: How to handle VSFlexGrid's OnPaste event ? Pin
Madhu Nair29-Jun-09 22:30
Madhu Nair29-Jun-09 22:30 

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.