RE: [sqlite] Passing Arguments to SQLite3 from C++

2007-04-09 Thread James Dennett
ay, April 09, 2007 3:29 PM > To: sqlite-users@sqlite.org > Subject: Re: [sqlite] Passing Arguments to SQLite3 from C++ > > > Thanks, Ted. I'll give this a shot. > Regards, > > Nick. > > Teg wrote: [snip] > > std::string m_sSQL = "insert int

Re: [sqlite] Passing Arguments to SQLite3 from C++

2007-04-09 Thread nshaw
Thanks, Ted. I'll give this a shot. Regards, Nick. Teg wrote: > > Hello nshaw, > > std::string m_sSQL = "CREATE TABLE IF NOT EXISTS "; > m_sSQL += g_pszTableName; > m_sSQL += "(" ; > m_sSQL += "AR_FilenameTEXT PRIMARY KEY," > ; >

Re: [sqlite] Passing Arguments to SQLite3 from C++

2007-04-09 Thread John Stanton
nshaw wrote: Help! I've done everything I can think of to pass arguments to SQLite and nothing is working. If anyone has information on how to do it, I'd appreciate it. Here's a code segment: #include #include #include #include "util.h"

Re: [sqlite] Passing Arguments to SQLite3 from C++

2007-04-09 Thread Teg
Hello nshaw, std::string m_sSQL = "CREATE TABLE IF NOT EXISTS "; m_sSQL += g_pszTableName; m_sSQL += "(" ; m_sSQL += "AR_FilenameTEXT PRIMARY KEY," ; m_sSQL += "AR_Subject TEXT ," ; m_sSQL +=

RE: [sqlite] Passing Arguments to SQLite3 from C++

2007-04-09 Thread James Dennett
nshaw writes: > Help! > > I've done everything I can think of to pass arguments to SQLite and > nothing > is working. If anyone has information on how to do it, I'd appreciate it. > Here's a code segment: [edited to remove SQL3-related material] > int main (int argc, char **argv) > { >