上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: 在选择数据源界面:数据源:Microsoft Access文件名:选择要导入的文件用户名:admin密码:(空的)猛击”高级“按钮切到”高级“选项卡,访问权限设为 ReadWrite,去掉Share Deny None,然后无脑下一步,完成。 阅读全文
posted @ 2013-07-06 22:59 黑冰.org 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 一个项目中有数据图表呈现,数据量稍大时显得很慢。用Stopwatch分段监控了一下,发现耗时最多的函数是SaveToExcel此函数中遍列所有数据行,通过Replace替换标签生成Excel行,然后将行数据累加赋值到一个字符串var excelString = "";foreach(var item in list){ excelString += string.Format("....{0}",list.Title);}看到这。。立马想起无数先烈们的警告、字符串拼接的内存操作原理等等。于是大手一挥,代码全删,改为如下形式var excelString 阅读全文
posted @ 2013-07-04 12:22 黑冰.org 阅读(2959) 评论(0) 推荐(0) 编辑
摘要: 买来之后一直没注意过麦克风的问题,今天基友们群视频,才发现我的机器是哑的打开录音设备,发现没有设备重装驱动无果打开BIOS,在安全选项——IO/Access中将Microphone 设为 Enabled,还是无效。反复折腾了几遍,才注意到Microphone的说明中有一行字 Remove AC power。尼玛,拔掉外接电源,拔掉电池十秒再装上,开机。。果然,麦克风的灯亮了。 阅读全文
posted @ 2013-06-26 21:35 黑冰.org 阅读(2764) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript" charset="utf-8" src="../ueditor/editor_config.js"></script> <script type="text/javascript" charset="utf-8" src="../ueditor/editor_all.js"></script> <dl> <dt>图片标题:</dt> 阅读全文
posted @ 2013-05-25 20:38 黑冰.org 阅读(5734) 评论(0) 推荐(0) 编辑
摘要: //C#调用C++的DLL搜集整理的所有数据类型转换方式,可能会有重复或者多种方案,自己多测试 //c++:HANDLE(void *) ---- c#:System.IntPtr //c++:Byte(unsigned char) ---- c#:System.Byte //c++:SHORT(short) ---- c#:System.Int16 //c++:WORD(unsigned short) ---- c#:System.UInt16 //c++:INT(int) ---- c#:System.Int16 //c++:INT(int) ---... 阅读全文
posted @ 2013-05-23 12:47 黑冰.org 阅读(11414) 评论(0) 推荐(2) 编辑
摘要: private void CaptureJpeg() { var catchBmp = new Bitmap(pictureBox1.Width, pictureBox1.Height); var g = Graphics.FromImage(catchBmp); //转换成控件在屏幕上的坐标 var screenPoint = PointToScreen(pictureBox1.Location); //拷贝屏幕区域到Bitmap ... 阅读全文
posted @ 2013-05-23 12:46 黑冰.org 阅读(30568) 评论(3) 推荐(2) 编辑
摘要: C++public delegate bool EventCallBack(int index, int type, int param1, int param2);[DllImport(WAPA_DLL, EntryPoint = "WAPA_IPC_SetEventCallBack", CallingConvention = CallingConvention.Cdecl)]public static extern int WAPA_IPC_SetEventCallBack(EventCallBack fEvent); C#调用 public ctlCamera() . 阅读全文
posted @ 2013-05-22 11:41 黑冰.org 阅读(2396) 评论(2) 推荐(2) 编辑
摘要: 目测IE10加强了CSS命名的规范要求,原来的命名是连接符,现在要改成下划线将class="required-validate"改成required_validate即可 阅读全文
posted @ 2013-05-16 17:37 黑冰.org 阅读(1267) 评论(5) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <script type="text/javascript" src="/j 阅读全文
posted @ 2013-05-12 00:15 黑冰.org 阅读(985) 评论(0) 推荐(0) 编辑
摘要: 另存为mht,用正则替换以下两个标签<x:SupBook>之间</x:SupBook><x:ExcelName>之间</x:ExcelName> 阅读全文
posted @ 2013-05-03 18:12 黑冰.org 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页