Thanks!
>This line shouldn't compile unless you really meant
>&CMainView::sqlCallback_UpdateList as the 3rd parameter.
I reallly meant it as the 3rd parameter.
I have made my program run but don't why,as I've wrote in the reply to
Pavel.
>Do you understand that this output is useless? What woul
THANKS VERY MUCH for so exhaustive reply! :-)
I made my program run before I saw your reply, but I can't understand
how it works.
The problem seems to be caused by the 1st parameter of sqlite3_exec.
sqlite3_exec(pDoc->m_db,pDoc->m_strSQL,sqlCallback_UpdateList , 0,
&(pDoc->m_pErrMsg));
I changed
That sounds reasonable.
But I 've deleted code which can provide evidence.
That's all,it's just a homework.
Thanks!
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
I believe your changes mean that your database handler pDoc->m_db
wasn't open before the call to CMainView::myUpdateView() despite you
thought so.
Pavel
On Mon, Sep 28, 2009 at 9:12 AM, meng wei wrote:
> THANKS VERY MUCH for so exhaustive reply! :-)
>
> I made my program run before I saw your re
Thanks!
> This line shouldn't compile unless you really meant
> &CMainView::sqlCallback_UpdateList as the 3rd parameter.
I reallly meant it as the 3rd parameter.
I have made my program run but don't why,as I've wrote in the reply to
Pavel.
> Do you understand that this output is useless? What w
THANKS VERY MUCH for so exhaustive reply! :-)
I made my program run before I saw your reply, but I can't understand
how it works.
The problem seems to be caused by the 1st parameter of sqlite3_exec.
sqlite3_exec(pDoc->m_db,pDoc->m_strSQL,sqlCallback_UpdateList , 0,
&(pDoc->m_pErrMsg));
I changed
Hi, Meng.
The problem is that you are passing a C++ class method to sqlite3_exec.
sqlite3_exec expects a callback function using the CDECL calling
convention, and by default class methods do not use that calling
convention when compiled under Visual C++ (they use thiscall, IIRC.)
The reason it wo
> sqlite3_exec(pDoc->m_db,"select * from table1", sqlCallback_UpdateList,
> 0, &(pDoc->m_pErrMsg));
This line shouldn't compile unless you really meant
&CMainView::sqlCallback_UpdateList as the 3rd parameter.
> I met no problem with win32 console application,but when it turn to MFC
> in Visual C+
I met no problem with win32 console application,but when it turn to MFC
in Visual C++,the same code dosen't work.
*The error is:*
Unhandeled exception in xxx.exe(sqlite3.dll)0xC005 Access Violation
*More output:*
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\sys
Hi everyone!
I met no problem with win32 console application,but when it turn to MFC
in Visual C++,the same code dosen't work.
Anyone can give me some suggestion?
Thanks in advance!
*The error is:*
Unhandeled exception in xxx.exe(sqlite3.dll)0xC005 Access Violation
*More output:*
Loaded 'ntdll
Hi all,
I'm sorry about the inconvenience. I sent the e-mail below to [EMAIL
PROTECTED]
but I do not know if it's the correct e-mail to tell about possible
bugs.
So, I'm just forwarding my yesterday's e-mail in sqlite-users@sqlite.org
. Please check the message below, any help is appr
11 matches
Mail list logo