Re: [sqlite] Re: C/C++ API

2007-09-05 Thread John Stanton
;SQLite" Betreff: [sqlite] Re: C/C++ API "Severin Müller" <[EMAIL PROTECTED]> wrote: This won't work, because sUsername.assign... will not be accepted with sqlite3_column_text, because sqlite_column_text if of type const unsigned c

Re: [sqlite] Re: C/C++ API

2007-09-05 Thread Severin Müller
; > An: "SQLite" > Betreff: [sqlite] Re: C/C++ API > "Severin Müller" <[EMAIL PROTECTED]> wrote: > > This won't work, because sUsername.assign... will not be accepted > > with sqlite3_column_text, because sqlite_column_text if of type

[sqlite] Re: C/C++ API

2007-09-05 Thread Igor Tandetnik
"Severin Müller" <[EMAIL PROTECTED]> wrote: This won't work, because sUsername.assign... will not be accepted with sqlite3_column_text, because sqlite_column_text if of type const unsigned char... Just cast it to const char* Igor Tandetnik --

Re: [sqlite] Re: C

2007-03-01 Thread Lloyd
Thanks Igor. This is what I wanted. On Thu, 2007-03-01 at 07:46 -0500, Igor Tandetnik wrote: > Lloyd wrote: > > How can I make an array of bit fields? something like, using the 16 > > bits > > of a short as an array of bits > > You can't. But, if you can use C++ rather than C, there's std::bitse

[sqlite] Re: C

2007-03-01 Thread Igor Tandetnik
Lloyd wrote: How can I make an array of bit fields? something like, using the 16 bits of a short as an array of bits You can't. But, if you can use C++ rather than C, there's std::bitset class that does just that. Igor Tandetnik --