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) { char

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 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 iostream #include stdio.h #include stdlib.h #include

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, ; m_sSQL +=

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

2007-04-09 Thread James Dennett
, 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 into family (member,age) values ; m_sSQL += ( ; m_sSQL