VS2008 using the SQLite database with C # for Windows Mobile 6.0 development

Source: Internet
Author: User
Tags sqlite database

I use the English version of the VS2008, do not like to use the Chinese version.

Now use C # for related development, using the SQLite database.

Find a lot of online, the real tutorial is very few, are posted a bunch of garbage code. Either is unable to configure through, the error a lot, hey.

Finally, I have to find a solution.


1, download SQLite run the library, the first online tutorial is let us go to Http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki download, but on the page so much, we should choose Which? The Web page turned to the bottom of the Legacy Versions,



The true download link address is: http://sourceforge.net/projects/sqlite-dotnet2/files/SQLite%20for%20ADO.NET%202.0/

Download Latest Version: Sqlite-1.0.66.0-binaries.zip


2, downloaded after the extract to their own designated directory, for example: C:\Program Files (x86) \sqlite.net. The directory contains folders that have bin Doc and Readme.htm files


3, open VS2008 your project, right click References,add reference,browse Browse to the directory you just unzipped, into the compactframework directory below, Select System.data.sqlite.dll,ok.  Be sure to choose this, or your project for Windows Mobile form engineering, will certainly compile an error. We found a file called Sqlite.interop.066.dll in this directory, what is this for? This is the library file used on the Windows Mobile platform, or the program will not run on the machine, so copy this file to the project run directory on your machine.


4, this time has been compiled through, but there are still 3 warning.


5, solve warning, because of 2.0 and 3.5 version compatibility issues, we put the project in the original references System.Xml,system.data,System All three of them are erased.


6, according to the method of 3rd, continue to add the following reference


7, browse to C:\Program Files (x86) \microsoft.net\sdk\compactframework\v2.0\windowsce directory, this directory is my Computer directory, you can according to your own computer situation to find this directory, The Program Files directory is usually in the C drive.


8, add this directory of System.Xml,system.data,System three files, OK.


9, OK, you can recompile the project, the perfect pass, not a warning and error.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.