我一直在尝试在Visual Studio 2012上使用EmguCV v3.0,并使用C#从IplImage到Bitmap隐藏图像格式。当我调试项目时,VS抛出以下异常:
无法加载文件或程序集“Emgu.CV,Version = 2.4.10.1939, Culture = neutral,PublicKeyToken = 7281126722ab4438“....
我检查了系统环境路径和Project的参考资料并在项目中使用,有正确的。然后我也尝试将平台目标更改为AnyCPU,失败了! 我不知道我的项目有什么问题,请帮助,谢谢!
SMySqlDataAdapter adapter = new MySqlDataAdapter(query, connString); DataTable table = new DataTable(); table.Locale = System.Globalization.CultureInfo.InvariantCulture; adapter.Fill(table); e.Result = table; dataGridView1.AutoGenerateColumns = false; dataGridView1.DataSource = table; DataGridViewColumn(table.Columns[0].ColumnName, new DataGridViewTextBoxColumn()); DataGridViewColumn(table.Columns[1].ColumnName, new DataGridViewTextBoxColumn()); DataGridViewColumn(table.Columns[2].ColumnName, new DataGridViewTextBoxColumn()); DataGridViewColumn(table.Columns[3].ColumnName, new CalendarColumn());//Create the CalendarColumn class as MSDN suggested private void DataGridViewColumn(string colName, DataGridViewColumn colType) { colType.DataPropertyName = colName; colType.HeaderText = colName; colType.Name = colName; dataGridView1.Columns.Add(colType); }
CalendarColumn