Hi Mike,
That did the trick. I am new to C, but I have used SQLite in Perl and
Python. Thanks!*
List: sqlite-users <http://marc.info/?l=sqlite-users&r=1&w=2>
Subject: Re: [sqlite] C API trouble
From: "Mike Polyakov"
<http://marc.info/?a=11
Besides the unneded function calls, and a lot of checks for valid
data, the problem here is that you have to copy data using memcpy or
somthing similar:
instead of chCommand = (const char*)sqlite3_column_text(ptrSel,2);
do
memcpy(chCommand, sqlite3_column_text(ptrSel,2),
sqlite3_column_bytes(ptr
2 matches
Mail list logo