peterhuene / sqlite-net-wp8

A C++/CX wrapper for SQLite functions that sqlite-net depends on. Can be used as an alternative to csharp-sqlite on Windows Phone 8. This library is released under the MIT license.
MIT License
74 stars 65 forks source link

SQLite.cs errors #20

Closed Jali2GitHub closed 11 years ago

Jali2GitHub commented 11 years ago

Hello, I am testing sqlite-net-WP8 but have trouble getting it to work. When compiling my SQLite solution, I get three errors related to SQLite.cs, see below. Have tried with the previous versions but get the same error, the last one is from sqlite-net-WP8-3.8.0.zip.

Source line 12 The best overloaded method match for 'SQLite.SQLite3.Open (string, out Sqlite.Database, int, System.IntPtr)' has some invalid arguments Source line 26 Line 12Argument 1: can not convert from 'byte []' to 'string' Source line 32 'System.Threading.Thread' does not containe a definition for 'VolatileWrite'

I have performed the steps described for using sqlite-net-WP8 but probably done something wrong. Grateful if you can help me.

Regards Jan Lindgren jl@nybyit.se

peterhuene commented 11 years ago

Hi Jan,

Please make sure that SILVERLIGHT and USE_WP8_NATIVE_SQLITE are set in your compiler conditional symbols in your project settings.

Jali2GitHub commented 11 years ago

Hi Peter, Thank you for your quick response and guidance, there was a misspelling in the project settings.

Do you know of any example, tutorial or similar that can help me create a simple test case. I have previously used SQLite in the PC environment.

Sincerely. Jan Lindgren jl@nybyit.se

2013-09-03 peterhuene wrote:

Hi Jan,

Please make sure that SILVERLIGHT and USE_WP8_NATIVE_SQLITE are set in your compiler conditional symbols in your project settings.


Reply to this email directly or view it on GitHub: https://github.com/peterhuene/sqlite-net-wp8/issues/20#issuecomment-23721087

peterhuene commented 11 years ago

I don't know of any example or tutorial offhand, but using sqlite-net from WP8 should (primarily) be the same as from a desktop environment. Check out sqlite-net's page that has a few examples to get you started.