The answer to that question is that my DIalog design wasn't working, and I was wondering whether it was to do with creation etc, and I didnt go back to it yet.
As I'm getting the same results as with my original design, I will go back to it.
Either way, the tab stops dont seem to want to work
[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
code is here
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))
for(long y=0; y<numflds; y++)
if(field1->flags & AUTO_INCREMENT_FLAG)
The results will still be the same, won't it be? I do not know if the method that accepts that particular pointer will do a write operation to it, or probably call some method on it if it's a class object.
Either ways, how do you expect an uninitialised pointer to work? Try creating the variable on the stack and use it instead.
my code is working fine when table rows is less than 229000.I am getting error when table rows is more than 229000.
So there is no need to discusses about res is an initialised or uninitialised.Matter is why
generating exception if table rows is more than 229000.
Plz help me
i created one dialog based application. In that Dlg App class i am calling RegisterShellFileTypes(), in CWInApp::initInstace.
But application is crashing due to no poniter to document class.
code is like this :
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
// TODO: Place code here to handle when the dialog is// dismissed with OK
elseif (nResponse == IDCANCEL)
// TODO: Place code here to handle when the dialog is// dismissed with Cancel
so, can anyone tell me what is the problem exactly?
The problem is precisely what the error message says. RegisterShellFileTypes creates registry entries to associate a document type and file extension with an .exe. If you aren't using the MFC DocView framework, there is no document class and the function call fails.
You can make the same registry entries manually; just because you aren't using the DocView framework doesn't mean you can't associate a file extension with an app, it just takes a bit more code.
Yeah.... and what does SDI stand for? 'Single Document Interface'. It works in an SDI app because the SDI app has a document class, and fails in your dialog app because it doesn't have a document class.