I am trying to use SQLite at AHK via C#
So, I wrote very simple codes as followings
Code: Select all
myCode =
(
using System;
using System.Windows.Forms;
using System.Data;
using System.Data.SQLite;
class myClass
{
public void myMethod()
{
string myPath = @"BulahBulah";
int myCount;
using(SQLiteConnection myConnection = new SQLiteConnection(@"Data Source=" + myPath))
{
SQLiteCommand myCommand = new SQLiteCommand("SELECT COUNT(*) FROM myTable", myConnection);
myConnection.Open();
myCount = Convert.ToInt32(myCommand.ExecuteScalar());
}
MessageBox.Show(myCount.ToString());
}
}
)
myReference =
( Join|
mscorlib.dll
System.dll
System.Windows.Forms.dll
System.Data.dll
System.Data.SQLite.dll
)
CLR_CreateObject(CLR_CompileC#(myCode, myReference), "myClass").myMethod()
Error: 0x80070002 -
지정된 파일을 찾을 수 없습니다.
(<--Could not find designated file)
Source: ppoyiic4
Description: 파일이나 어셈블리 'System.Data.SQLite, Version=1.0.104.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'
또는 여기에 종속되어 있는 파일이나 어셈블리 중 하나를 로드할 수 없습니다.
(<--OR Could not load one of dependency file or assembly)
지정된 파일을 찾을 수 없습니다.
(<--Could not find designated file)
HelpFile: (null)
HelpContext: 0
I have placed two dlls at script folder
System.Data.dll
System.Data.SQLite.dll
What seems to be the problem ? version ? referencing ? something else ?
Thanks