我加载了SQLite的 .dll文件 想打开数据库操作的(语法是 托管C++) 下面是代码的一部分 运行到 con->Open()的时候报错 String ^ConnectionString ="Dirver={ Navicat for SQLite (*.DB)};DBQ= f:\\aa\\server.db;"; if(!System::IO::File::Exists(ConnectionString))
{ SQLiteCommand ^dbc = gcnew SQLiteCommand();
SQLiteConnection ^con = gcnew SQLiteConnection(ConnectionString);
con->Open();错误是:An unhandled exception of type 'System.ArgumentException' occurred in System.Data.SQLite.dllAdditional information: Data Source cannot be empty. Use :memory: to open an in-memory database求解!!
{ SQLiteCommand ^dbc = gcnew SQLiteCommand();
SQLiteConnection ^con = gcnew SQLiteConnection(ConnectionString);
con->Open();错误是:An unhandled exception of type 'System.ArgumentException' occurred in System.Data.SQLite.dllAdditional information: Data Source cannot be empty. Use :memory: to open an in-memory database求解!!
解决方案 »
- 求帮忙!!Label3.Text = Session["GoodsCity"].ToString();
- 请问,VS自带的打包程序,怎么使用我自己定义的序列号?
- 我在使用TIMER控件的时候 怎么报这个错误 求助
- 急需----datetimepicker该控件怎么使用
- 从一坨数字中,找出N个相加最接近一个指定数字的N组数字来 怎么用算法实现?
- WinForm的问题:如何绑定图片到DataGridView中?
- XXXXXXXXXXX 有关数据绑定的问题 XXXXXXXXXXX
- XSL转换问题,简单,做出一定给分
- 急!!!急!!!急!!!KeyPressEventArgs的KeyChar
- 急~C#高手帮忙
- zedGraph双y轴
- 下面这段导出为excel的思路谁能解释一下吗
你改成这样试试。
String ^ConnectionString ="data source= f:\\aa\\server.db";