Re: [sqlite] using wstring

2009-04-16 Thread Fin Springs
On Apr 16, 2009, at 6:44 AM, galeazzi-at-korg.it |sqlite| wrote: > I tried to use (const char*)sQuery.c_str() but it doesn't work. Any > ideas? That won't work because std::wstring.c_str() returns wchar_t* not char*. One way would be to convert your std::wstring to an std::string in UTF-8

Re: [sqlite] using wstring

2009-04-16 Thread Igor Tandetnik
wrote in message news:20090416141406.euzgo2r52i00o...@webmail.korg.it > I cannot use parameterized queries because the queries are more > complex than the simple one that I wrote I'm not sure how your conclusion follows from the premise. You can use parameters with any query, no matter how compl

Re: [sqlite] using wstring

2009-04-16 Thread galeazzi
I cannot use parameterized queries because the queries are more complex than the simple one that I wrote, furthermore I've to use sqlite3_get_table Citando Igor Tandetnik : > wrote in message > news:20090416124428.h5zi6xji5h5wk...@webmail.korg.it >> I'm currently working with a framework whic

Re: [sqlite] using wstring

2009-04-16 Thread galeazzi
I cannot use parameterized queries because the queries are more complex than the simple one that I wrote, I've sqlite3_get_table Citando Igor Tandetnik : > wrote in message > news:20090416124428.h5zi6xji5h5wk...@webmail.korg.it >> I'm currently working with a framework which uses wstring, how

Re: [sqlite] using wstring

2009-04-16 Thread Igor Tandetnik
wrote in message news:20090416124428.h5zi6xji5h5wk...@webmail.korg.it > I'm currently working with a framework which uses wstring, how can I > dynamically create queries like this: > std::wstring sQuery = L"SELECT * FROM Table WHERE Tilte = '"; > sQuery += title; //it's a wstring > sQuery += "'" >

[sqlite] using wstring

2009-04-16 Thread galeazzi
I'm currently working with a framework which uses wstring, how can I dynamically create queries like this: std::wstring sQuery = L”SELECT * FROM Table WHERE Tilte = '”; sQuery += title; //it's a wstring sQuery += “'” I tried to use (const char*)sQuery.c_str() but it doesn't work. Any ideas? ___