Click here to Skip to main content
15,908,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Using Class Template in Visual C++ Pin
Stuart Dootson30-Jun-09 2:39
professionalStuart Dootson30-Jun-09 2:39 
GeneralRe: Using Class Template in Visual C++ Pin
emira6730-Jun-09 2:48
emira6730-Jun-09 2:48 
GeneralRe: Using Class Template in Visual C++ Pin
Stuart Dootson30-Jun-09 2:52
professionalStuart Dootson30-Jun-09 2:52 
Questionerror in starting widows service after installation Pin
Subrat Patnaik30-Jun-09 0:46
Subrat Patnaik30-Jun-09 0:46 
AnswerRe: error in starting widows service after installation Pin
Cedric Moonen30-Jun-09 0:58
Cedric Moonen30-Jun-09 0:58 
GeneralRe: error in starting widows service after installation Pin
Chuck O'Toole30-Jun-09 22:57
Chuck O'Toole30-Jun-09 22:57 
GeneralRe: error in starting widows service after installation Pin
Subrat Patnaik1-Jul-09 0:54
Subrat Patnaik1-Jul-09 0:54 
GeneralRe: error in starting widows service after installation Pin
Cedric Moonen1-Jul-09 0:56
Cedric Moonen1-Jul-09 0:56 
QuestionDoubt in MapMode Pin
KASR129-Jun-09 23:34
KASR129-Jun-09 23:34 
AnswerRe: Doubt in MapMode Pin
led mike30-Jun-09 4:34
led mike30-Jun-09 4:34 
Questionwmi problem Pin
Mogaambo29-Jun-09 23:03
Mogaambo29-Jun-09 23:03 
QuestionIOCTL codes Pin
AnayKulkarni29-Jun-09 21:07
AnayKulkarni29-Jun-09 21:07 
AnswerRe: IOCTL codes Pin
Cedric Moonen29-Jun-09 22:21
Cedric Moonen29-Jun-09 22:21 
AnswerRe: IOCTL codes Pin
Roger Stoltz30-Jun-09 1:25
Roger Stoltz30-Jun-09 1:25 
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 

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.