Re: [sqlite] convert CString for statement

2012-06-27 Thread PA Newsgroups
Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Alessandro Marzocchi Sent: Wednesday, June 27, 2012 6:34 AM To: General Discussion of SQLite Database Subject: Re: [sqlite] convert CString for statement I have no way to test but i think a call

Re: [sqlite] convert CString for statement

2012-06-27 Thread Alessandro Marzocchi
I have no way to test but i think a call like rc = sqlite3_bind_text(stmt, 1, (LPCTSTR)likeexp, -1, SQLITE_TRANSIENT ); would work 2012/6/26 deltagam...@gmx.net > Hello I have as input parameter > > CString likeexp > > but I think

[sqlite] convert CString for statement

2012-06-26 Thread deltagam...@gmx.net
Hello I have as input parameter CString likeexp but I think in the following statement likeexp hast to be char [] rc = sqlite3_bind_text(stmt, 1, likeexp, strlen(likeexp), NULL); How can i convert likeexp to fit the above statement ? ___