我想在Windows中使用 DataTable dataTable = new DataTable("dataTable");
DataColumn dataColumn = new DataColumn("dataColumn");
dataTable.Columns.Add(dataColumn);
// Add ten rows.
DataRow dataRow;
for (int i = 0; i < 10; i++)
{
dataRow = dataTable.NewRow();
dataRow["dataColumn"] = "item " + i;
dataTable.Rows.Add(dataRow);
}
dataTable.AcceptChanges();///add this line in your code
var dv = new DataView(dataTable, "", "dataColumn", DataViewRowState.OriginalRows);
int index = dv.Find("item 1");
if (index == -1)
Console.WriteLine("Product not found");
else
dv[index]["dataColumn"] = "item 1000";
找到文件或目录更改。我想在c ++中使用完整的示例代码。任何人都可以解释实际更改日志并帮助解决这个问题。?
答案 0 :(得分:1)
查看Harry Johnston添加的帖子,我认为这将是最合适的答案。请找到他的链接How can I detect only deleted, changed, and created files on a volume?。它包含用于检测日记帐分录中的更改的示例代码。要了解有关期刊的更多信息,请参阅msdn link https://msdn.microsoft.com/en-us/library/windows/desktop/aa363798(v=vs.85).aspx