上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 82 下一页
摘要: .a 用ar命令生成 .so 用ld命令生成 .a是静态库,.so是动态库,静态库是在连接过程中将相关代码提取出来加入可执行文件的库,动态库在连接时只创建一些符号表,而在运行的时候才将有关库的代码装入内存; 阅读全文
posted @ 2010-06-15 20:13 greencolor 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1.获取和设置当前目录的完全限定路径。string str = System.Environment.CurrentDirectory;Result: C:\xxx\xxx2.获取启动了应用程序的可执行文件的路径,不包括可执行文件的名称。string str = System.Windows.Forms.Application.StartupPath;Result: C:\xxx\xxx3.获取新... 阅读全文
posted @ 2010-06-06 20:43 greencolor 阅读(205) 评论(0) 推荐(0) 编辑
摘要: public static void EditFile(int curLine, string newLineValue, string patch) { FileStream fs = new FileStream(patch, FileMode.Open, FileAccess.Read); StreamReader sr = new StreamReader(fs, Encoding.Get... 阅读全文
posted @ 2010-06-06 17:26 greencolor 阅读(172) 评论(0) 推荐(0) 编辑
摘要: using System.IO; FileStream fs = new FileStream(Application.StartupPath + "\\AlarmSet.txt", FileMode.Open, FileAccess.ReadWrite); StreamReader sr = new StreamReader(fs, Encoding.GetEncoding("utf-8"));... 阅读全文
posted @ 2010-06-06 16:38 greencolor 阅读(143) 评论(0) 推荐(0) 编辑
摘要: using System.IO; FileStream fs1 = new FileStream(Application.StartupPath + "\\text.txt", FileMode.Create, FileAccess.Write);//创建写入文件 StreamWriter sw = new StreamWriter(fs1,Encoding.GetEncoding("utf-8... 阅读全文
posted @ 2010-06-06 15:30 greencolor 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Random ra = new Random();ra.Next(0, 9); 阅读全文
posted @ 2010-06-04 22:17 greencolor 阅读(166) 评论(0) 推荐(0) 编辑
摘要: <uc1:Paginat ID="Paginat1" runat="server" />paginat.list = (IList)materialManager.GetAllMaterial(); //code behind. | | || paginat// Usercontrol-------|----| public IList list; // public variable... 阅读全文
posted @ 2010-05-18 11:19 greencolor 阅读(144) 评论(0) 推荐(1) 编辑
摘要: <asp:LinkButton ID="linkBtnSelect" runat="server" CommandArgument='<%# Eval("Cid") %>Convert.ToInt32((sender as LinkButton).CommandArgument)) 阅读全文
posted @ 2010-05-17 20:44 greencolor 阅读(152) 评论(0) 推荐(0) 编辑
摘要: empInfoManager.GetEmpInfoByName(this.DropDownList1.SelectedItem.ToString());empInfoManager.GetEmpInfoByID(this.DropDownList1.SelectedValue); 阅读全文
posted @ 2010-05-17 00:30 greencolor 阅读(135) 评论(0) 推荐(1) 编辑
摘要: 在对象资源管理器中,右键单击要更改其标识属性的列所在的表,再单击“设计”(在 SP1 或更早版本中为“修改”)。此时,将在表设计器中打开该表。清除要更改的列的“允许空值”复选框。在“列属性”选项卡中,展开“标识规范”属性。单击“是标识”子属性的网格单元格,... 阅读全文
posted @ 2010-05-14 22:38 greencolor 阅读(220) 评论(0) 推荐(1) 编辑
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 82 下一页