上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 55 下一页
摘要: 函数名: atol功 能: 把字符串转换成长整型数用 法: long atol(const char *nptr);简介编辑相关函数:atof,atoi,strtod,strtol,strtoul表头文件: #include定义函数: long atol(const char *nptr);函数说明... 阅读全文
posted @ 2015-01-27 16:09 如.若 阅读(3712) 评论(0) 推荐(0) 编辑
摘要: 通过上面的效果截图可以看到,重绘后的MenuStrip和ContextMenuStrip可以添加自己的LOGO信息,实现了类似OFFICE2007的菜单显示效果。 .NET对菜单控件的绘制提供了一个抽象类ToolStripRenderer,这个类里面提供了相应的绘制函数,只要重写这些函数,就可以实现... 阅读全文
posted @ 2014-12-02 15:20 如.若 阅读(4263) 评论(0) 推荐(0) 编辑
摘要: DllImport是System.Runtime.InteropServices命名空间下的一个属性类,其功能是提供从非托管DLL导出的函数的必要调用信息。 DllImport属性应用于方法,要求最少要提供包含入口点的dll的名称。 DllImport的定义如下: [At... 阅读全文
posted @ 2014-12-02 15:11 如.若 阅读(3031) 评论(0) 推荐(0) 编辑
摘要: 尽管MS为我们提供了丰富的.net framework库,我们的程序C#开发带来了极大的便利,但是有时候,一些特定功能的控件库还是需要由第三方提供或是自己编写。当需要用到Dll引用的时候,我们通常会通过“添加引用”的方式将它们纳入到项目中,然后就可以像使用自己的类一样方便的使用它们了。但是,有些Dl... 阅读全文
posted @ 2014-12-02 15:10 如.若 阅读(2732) 评论(0) 推荐(0) 编辑
摘要: 在多线程中,为了使数据保持一致性必须要对数据或是访问数据的函数加锁,在数据库中这是很常见的,但是在程序中由于大部分都是单线程的程序,所以没有加锁的必要,但是在多线程中,为了保持数据的同步,一定要加锁,好在Framework中已经为我们提供了三个加锁的机制,分别是Monitor类、Lock关键字和Mu... 阅读全文
posted @ 2014-12-02 15:08 如.若 阅读(454) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace TransForm { class WinAPI { ... 阅读全文
posted @ 2014-12-02 15:06 如.若 阅读(896) 评论(0) 推荐(0) 编辑
摘要: [代码] [C#]代码using System;using System.Collections.Generic;using System.Text;using System.Net;using System.IO;using System.Text.RegularExpressions;using... 阅读全文
posted @ 2014-12-01 17:30 如.若 阅读(4328) 评论(0) 推荐(0) 编辑
摘要: C#实现写入Excel表using System;using System.Reflection;using System.IO;using Microsoft.Office.Interop.Excel; namespace Test{ class Program { p... 阅读全文
posted @ 2014-12-01 17:10 如.若 阅读(3001) 评论(0) 推荐(0) 编辑
摘要: #include #include void reverse(char *p) { char c, *p1, *p2; for (p1=p, p2=p+strlen(p)-1; p1<p2; c=*p1, *p1=*p2, *p2=c, p1++, p2--);} /**test**/... 阅读全文
posted @ 2014-12-01 17:07 如.若 阅读(210) 评论(0) 推荐(0) 编辑
摘要: static System.Collections.Specialized.StringCollection MakeStrings(string[] characters, int finalStringLength){ int finalLength = finalStringLength... 阅读全文
posted @ 2014-12-01 17:06 如.若 阅读(1257) 评论(0) 推荐(1) 编辑
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 55 下一页