[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/C++ API

2007-09-05 Thread Severin Müller
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 char... Just cast it to const char* Igor Tandetnik

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

2007-09-05 Thread John Stanton
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 char... Just cast it to const char* Igor Tandetnik

[sqlite] Re: C

2007-03-01 Thread Igor Tandetnik
Lloyd lloyd-jowPkhCZOFef0DUV/[EMAIL PROTECTED] 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

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 lloyd-jowPkhCZOFef0DUV/[EMAIL PROTECTED] 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++