会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
greencolor
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
57
58
59
60
61
62
63
64
65
···
82
下一页
2010年6月15日
.a .so
摘要: .a 用ar命令生成 .so 用ld命令生成 .a是静态库,.so是动态库,静态库是在连接过程中将相关代码提取出来加入可执行文件的库,动态库在连接时只创建一些符号表,而在运行的时候才将有关库的代码装入内存;
阅读全文
posted @ 2010-06-15 20:13 greencolor
阅读(225)
评论(0)
推荐(0)
2010年6月6日
Get Directory
摘要: 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
阅读(212)
评论(0)
推荐(0)
Modify a line from a spical file
摘要: 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
阅读(185)
评论(0)
推荐(0)
Read from file
摘要: 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
阅读(157)
评论(0)
推荐(0)
write to file
摘要: 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
阅读(146)
评论(0)
推荐(0)
2010年6月4日
Generate Random Between 0-9
摘要: Random ra = new Random();ra.Next(0, 9);
阅读全文
posted @ 2010-06-04 22:17 greencolor
阅读(170)
评论(0)
推荐(0)
2010年5月18日
GridViewSource PageDataSource
摘要: <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
阅读(149)
评论(0)
推荐(1)
2010年5月17日
Gridview linkbutton click
摘要: <asp:LinkButton ID="linkBtnSelect" runat="server" CommandArgument='<%# Eval("Cid") %>Convert.ToInt32((sender as LinkButton).CommandArgument))
阅读全文
posted @ 2010-05-17 20:44 greencolor
阅读(159)
评论(0)
推荐(0)
info binding
摘要: empInfoManager.GetEmpInfoByName(this.DropDownList1.SelectedItem.ToString());empInfoManager.GetEmpInfoByID(this.DropDownList1.SelectedValue);
阅读全文
posted @ 2010-05-17 00:30 greencolor
阅读(138)
评论(0)
推荐(1)
2010年5月14日
修改列的标识属性
摘要: 在对象资源管理器中,右键单击要更改其标识属性的列所在的表,再单击“设计”(在 SP1 或更早版本中为“修改”)。此时,将在表设计器中打开该表。清除要更改的列的“允许空值”复选框。在“列属性”选项卡中,展开“标识规范”属性。单击“是标识”子属性的网格单元格,...
阅读全文
posted @ 2010-05-14 22:38 greencolor
阅读(234)
评论(0)
推荐(1)
上一页
1
···
57
58
59
60
61
62
63
64
65
···
82
下一页
公告