Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Owner Draw ListBox not recognising tab commands in strings Pin
David Crow3-Dec-09 6:22
David Crow3-Dec-09 6:22 
AnswerRe: Owner Draw ListBox not recognising tab commands in strings Pin
maycockt6-Dec-09 20:38
maycockt6-Dec-09 20:38 
GeneralRe: Owner Draw ListBox not recognising tab commands in strings Pin
raymondc05-Dec-09 12:03
raymondc05-Dec-09 12:03 
GeneralRe: Owner Draw ListBox not recognising tab commands in strings Pin
maycockt6-Dec-09 20:41
maycockt6-Dec-09 20:41 
GeneralRe: Owner Draw ListBox not recognising tab commands in strings Pin
raymondc07-Dec-09 4:09
raymondc07-Dec-09 4:09 
QuestionRe: Owner Draw ListBox not recognising tab commands in strings Pin
David Crow3-Dec-09 5:52
David Crow3-Dec-09 5:52 
AnswerRe: Owner Draw ListBox not recognising tab commands in strings Pin
maycockt3-Dec-09 5:56
maycockt3-Dec-09 5:56 
Questionmysql_fetch_field Pin
MsmVc3-Dec-09 0:38
MsmVc3-Dec-09 0:38 
Hello All
I getting exception while I use
mysql_fetch_field
.I use debug then I found when table rows is more than 229000 then Iam getting exception in this line
field1=mysql_fetch_field(res1);
.
Unhandled exception at 0x10010d74 in SQLconvert.exe: 0xC0000005: Access violation reading location 0x00000040.

Call stack shows
libmySQL.dll!10010d74() 	
 	[Frames below may be incorrect and/or missing, no symbols loaded for libmySQL.dll]	
>	SQLconvert.exe!CSQLconvertDlg::EnumRow(ATL::CStringT<char,StrTraitMFC<char,ATL::ChTraitsCRT<char> > > tab="sheet1")  Line 1400 + 0xc bytes	C++
 	SQLconvert.exe!CSQLconvertDlg::Convert()  Line 1147	C++
 	SQLconvert.exe!readThread(void * p=0x0012f254)  Line 56	C++
 	SQLconvert.exe!_AfxThreadEntry(void * pParam=0x0012e5c0)  Line 109 + 0xf bytes	C++
 	SQLconvert.exe!_callthreadstartex()  Line 348 + 0xf bytes	C
 	SQLconvert.exe!_threadstartex(void * ptd=0x003fd628)  Line 331	C
 	kernel32.dll!7c80b699() 

code is here
QueryResultsPtr Qry;
MYSQL_FIELD	*field1;
MYSQL_RES	*res;
enum enum_field_types type;
	if (!mysql_query(conn," SELECT * FROM tes")) 
	{
		res = mysql_store_result(conn) ;
		int numrows = (int)mysql_num_rows(res);
		int numflds = (int)mysql_num_fields(res);
		
		while (row = mysql_fetch_row(res)) 
		{
			
			res1=mysql_list_fields(conn,tab,"%");
			for(long y=0; y<numflds; y++)
			{
				
				str2.Empty();
				field1=mysql_fetch_field(res1);
				if(field1->flags & AUTO_INCREMENT_FLAG)
					continue;
				str2+=(LPTSTR)row[y];
				type=field1->type;
				
			}
}
}

AnswerRe: mysql_fetch_field Pin
includeh103-Dec-09 1:26
includeh103-Dec-09 1:26 
AnswerRe: mysql_fetch_field Pin
Rajesh R Subramanian3-Dec-09 1:26
professionalRajesh R Subramanian3-Dec-09 1:26 
GeneralRe: mysql_fetch_field Pin
MsmVc3-Dec-09 1:30
MsmVc3-Dec-09 1:30 
AnswerRe: mysql_fetch_field Pin
Rajesh R Subramanian3-Dec-09 1:33
professionalRajesh R Subramanian3-Dec-09 1:33 
GeneralRe: mysql_fetch_field Pin
MsmVc3-Dec-09 1:40
MsmVc3-Dec-09 1:40 
GeneralRe: mysql_fetch_field Pin
includeh103-Dec-09 2:10
includeh103-Dec-09 2:10 
GeneralRe: mysql_fetch_field Pin
MsmVc3-Dec-09 17:22
MsmVc3-Dec-09 17:22 
QuestionGetting problem with RegisterShellFileTypes() in MFC Dialog based application. [modified] Pin
vasu_sri3-Dec-09 0:12
vasu_sri3-Dec-09 0:12 
AnswerRe: Getting problem with RegisterShellFileTypes() in MFC Dialog based application. Pin
LunaticFringe3-Dec-09 0:23
LunaticFringe3-Dec-09 0:23 
GeneralRe: Getting problem with RegisterShellFileTypes() in MFC Dialog based application. Pin
vasu_sri3-Dec-09 0:52
vasu_sri3-Dec-09 0:52 
GeneralRe: Getting problem with RegisterShellFileTypes() in MFC Dialog based application. Pin
LunaticFringe3-Dec-09 4:48
LunaticFringe3-Dec-09 4:48 
GeneralRe: Getting problem with RegisterShellFileTypes() in MFC Dialog based application. Pin
vasu_sri3-Dec-09 17:51
vasu_sri3-Dec-09 17:51 
AnswerRe: Getting problem with RegisterShellFileTypes() in MFC Dialog based application. Pin
KingsGambit3-Dec-09 0:26
KingsGambit3-Dec-09 0:26 
Questionunresolved external symbol "public: long __thiscall IWshRuntimeLibrary::IWshShortcut::Save(void) Pin
includeh102-Dec-09 23:08
includeh102-Dec-09 23:08 
AnswerRe: unresolved external symbol "public: long __thiscall IWshRuntimeLibrary::IWshShortcut::Save(void) Pin
Richard MacCutchan3-Dec-09 0:06
mveRichard MacCutchan3-Dec-09 0:06 
GeneralRe: unresolved external symbol "public: long __thiscall IWshRuntimeLibrary::IWshShortcut::Save(void) Pin
includeh103-Dec-09 1:12
includeh103-Dec-09 1:12 
GeneralRe: unresolved external symbol "public: long __thiscall IWshRuntimeLibrary::IWshShortcut::Save(void) Pin
Richard MacCutchan3-Dec-09 1:31
mveRichard MacCutchan3-Dec-09 1:31 

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.