2005年1月26日

未处理的异常:进程性能计数器已禁用

摘要: 调试出错: 未处理的异常: System.InvalidOperationException: 进程性能计数器已禁用,因此无法执行所请求的操作 问题解决:修改注册表信息 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance 下面的键值Disable Performance Counters 设置... 阅读全文

posted @ 2005-01-26 11:30 琼 阅读(2961) 评论(4) 推荐(0) 编辑

INI文件格式及其操作代码

摘要: INI文件格式如下: [Database] server=wlq database=mydatabase uid=sa pwd=123456 说明:(有4个key) Section为:Database Key为:server database uid pwd /***************代码******************/ using System; using System.IO;... 阅读全文

posted @ 2005-01-26 11:30 琼 阅读(12675) 评论(0) 推荐(0) 编辑

C#中调用DLL文件

摘要: 用DllImportAttribute直接调用 using System.Runtime.InteropServices; [DllImport("KERNEL32.DLL", EntryPoint="MoveFileW", SetLastError=true, CharSet=CharSet.Unicode, ExactSpelling=true, CallingConvention=C... 阅读全文

posted @ 2005-01-26 11:29 琼 阅读(764) 评论(0) 推荐(0) 编辑

dataGrid 的使用

摘要: MessageBox.Show ("Col is " + DataGrid1.CurrentCell.ColumnNumber + ", Row is " + DataGrid1.CurrentCell.RowNumber + ", Value is " + DataGrid1[DataGrid1.CurrentCell] ); http://www.cnblogs.com/fellowche... 阅读全文

posted @ 2005-01-26 11:28 琼 阅读(451) 评论(0) 推荐(0) 编辑

导航