怎么用C#链接SQLite 数据库 基于window mobile 平台 报错“Can't find PInvoke DLL 'SQLite.Interop”
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SQLite;
namespace dabalink
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
SQLiteConnection conn = new SQLiteConnection();
conn.ConnectionString = @"Data Source=e:\wmapp\dabalink\dabalink\test.db";
conn.Open();
SQLiteCommand cmd = new SQLiteCommand(conn);
cmd.CommandText = "select * from book";
SQLiteDataAdapter da = new SQLiteDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
da.Fill(ds);
}
}
}
我想链接一下数据库,但是老报错,Can't find PInvoke DLL 'SQLite.Interop.066.DLL'.引用我已经添加了。这是为什么啊!请大虾们来帮忙啊
[解决办法]
能不能具体一点啊,我用的是模拟器,我不知道'SQLite.Interop.066.DLL'到底要放到哪里去啊