[sqlite] sqlite query with c++ variable

2010-07-09 Thread smengl90
Hi, I want to compose a query that will use a c++ variable. For example I have: int i= 5; char * query = "SELECT * from userInfo WHERE count<'i'". The syntax does not work. How do I do that? Thanks -- View this message in context:

[sqlite] sqlite query with c

2010-07-09 Thread smengl90
-- View this message in context: http://old.nabble.com/sqlite-query-with-c-tp29120975p29120975.html Sent from the SQLite mailing list archive at Nabble.com. ___ sqlite-users mailing list sqlite-users@sqlite.org

Re: [sqlite] EXTERNAL:Re: EXTERNAL: setup sqlite in vc++

2010-07-07 Thread smengl90
Still doesn't work. Do I need the precompiled binaries at all? or including sqlite3.c and sqlite3.h found in the amalgamation is enough? SimonDavies wrote: > > On 7 July 2010 18:19, smengl90 <fixed-term.seak.meng...@us.bosch.com> > wrote: >> >> Ok, I did just that

Re: [sqlite] EXTERNAL:Re: EXTERNAL: setup sqlite in vc++

2010-07-07 Thread smengl90
still doesn't work. Do I need to download the precompiled binaries at all? or including the sqlite3.c and sqite3.h found in the amalgamation is enough? smengl90 wrote: > > Here is my email address fixed-term.seak.meng...@us.bosch.com > > Thanks > > > Black, Michael (I

Re: [sqlite] EXTERNAL:Re: EXTERNAL: setup sqlite in vc++

2010-07-07 Thread smengl90
d you > can try it on the non-Express version. > > > Michael D. Black > Senior Scientist > Northrop Grumman Mission Systems > > > > > From: sqlite-users-boun...@sqlite.org on behalf of smengl90 > Sent: Wed 7/7/2010 12:19 PM &

Re: [sqlite] EXTERNAL:Re: EXTERNAL: setup sqlite in vc++

2010-07-07 Thread smengl90
> > > ____ > > From: sqlite-users-boun...@sqlite.org on behalf of smengl90 > Sent: Tue 7/6/2010 5:09 PM > To: sqlite-users@sqlite.org > Subject: EXTERNAL:Re: [sqlite] EXTERNAL: setup sqlite in vc++ > > > > > I found out that in

Re: [sqlite] EXTERNAL: setup sqlite in vc++

2010-07-06 Thread smengl90
I found out that including the header file alone is not enough. I need to link the sqlite lib to my project. But how can can I get the lib? smengl90 wrote: > > Thanks for prompt replies. I did as you advised, and included the .h file > as a source file and copied your code. B

Re: [sqlite] EXTERNAL: setup sqlite in vc++

2010-07-06 Thread smengl90
QLITE_OK) { > std::cout << errmsg << std::endl; > sqlite3_free(errmsg); > exit(-1); > } > } > sqlite3_exec(db,"COMMIT",NULL,NULL,); > sqlite3_close(db); > r

[sqlite] setup sqlite in vc++

2010-07-06 Thread smengl90
Hi guys, I am trying to setup sqlite to be used with VC++ 2008. Can someone show me where I can find instructions on how to set it up? and do I need a c++ wrapper to code in C++? If yes, can someone also show how to setup the wrapper? Thanks -- View this message in context: