首页 > Windows开发
C# 分部类和方法 (partial)
可以将类、结构、接口和方法的定义拆分到多个源文件中。每个源文件包含类型或方法的部分定义,在编译时,这些部分会被组合起来。   1.Partial Classes 在以下几种情况需要拆分类定义: 对于大型项目,将一个类分部为多个独立文件可以让多个程序员同时对该类进行处理。 使用自定生成的源文件时,不用修改文件就可以将代码添加到类中。Visual Studio 在创建 Window...
分类:Windows开发   时间:2015-02-04 13:05:55    收藏:0  评论:0  赞:0  阅读:351
环境配置(window+Apache+Php)
来自(http://www.cnblogs.com/yuan-yifan/archive/2012/05/06/2486556.html)环境配置(window+Apache+Php)如果配置过忘了,呢么紧跟红字引导哦~如果很讨厌配置环境这种工作的朋友,呵呵,搜"XAMPP"吧~安装包里应有尽有哦!...
分类:Windows开发   时间:2015-02-04 12:47:16    收藏:0  评论:0  赞:0  阅读:222
C#读写txt文件的两种方法介绍
1.添加命名空间 System.IO; System.Text;2.文件的读取 (1).使用FileStream类进行文件的读取,并将它转换成char数组,然后输出。 byte[] byData = new byte[100]; char[] charData = ...
分类:Windows开发   时间:2015-02-04 12:40:25    收藏:0  评论:0  赞:0  阅读:220
c# 获取 本周、本月、本季度、本年 的开始时间或结束时间
#region 获取 本周、本月、本季度、本年 的开始时间或结束时间 /// /// 获取结束时间 /// /// Week、Month、Season、Year /// /// ...
分类:Windows开发   时间:2015-02-04 12:37:15    收藏:0  评论:0  赞:0  阅读:349
How to setup a native windows server 2003 tftpd
expand tftpd.ex_ %windir%\system32\tftpd.exeinstsrv tftpd %windir%\system32\tftpd.exereg add hklm\system\currentcontrolset\services\tftpd\Parametersre...
分类:Windows开发   时间:2015-02-04 12:37:05    收藏:0  评论:0  赞:0  阅读:243
2015 UESTC Winter Training #10【Northeastern Europe 2009】
2015 UESTC Winter Training #10Northeastern Europe 2009最近集训都不在状态啊,嘛,上午一直在练车,比赛时也是刚吃过午饭,状态不好也难免,下次比赛提前吃饭休息一会儿吧。。一开始卡在B题,后来发现是题意理解错了,没有看见above,就是不可以回到原点,...
分类:Windows开发   时间:2015-02-04 12:34:14    收藏:0  评论:0  赞:0  阅读:192
拖动文件蕴含的windows消息机制
当文件拖放至窗体中后,系统将向窗体发送WM_DRAPFILES事件定义触发过程:procedureWMDROPFILES(varMsg:TMessage);messageWM_DROPFILES;启用窗口支持拖放DragAcceptFiles(Handle,True);//true为支持返回文件总数...
分类:Windows开发   时间:2015-02-04 12:33:45    收藏:0  评论:0  赞:0  阅读:309
C# 正则表达式替换制定关键词后面的所有内容
如题,将 {OUTSCIPTE} 关键词后的所有内容替换为string.Empty(包含关键字)这个正则该怎么写?我是 {OUTSCIPTE}(.*)$ 写的但是什么反应也没有string str=Regex.Replace("字符串",@"(?exp)或者(?'name'exp)其中name是分组...
分类:Windows开发   时间:2015-02-04 12:30:55    收藏:0  评论:0  赞:0  阅读:396
C# CryptoStream
using System;using System.IO;using System.Security.Cryptography;namespace RijndaelManaged_Example{ class RijndaelExample { public static ...
分类:Windows开发   时间:2015-02-04 12:25:37    收藏:0  评论:0  赞:0  阅读:218
HYSBZ 1026 windy数 数位dp
点击打开链接 windy数 Time Limit: 1 Sec  Memory Limit: 162 MB Submit: 3038  Solved: 1361 [Submit][Status] Description windy定义了一种windy数。不含前导零且相邻两个数字之差至少为2的正整数被称为windy数。 windy想知道,在A和B之间,包括A和B,总共...
分类:Windows开发   时间:2015-02-04 11:02:15    收藏:0  评论:0  赞:0  阅读:358
windows服务开发学习
一、 window服务是什么   当你单击“开始”,执行“services.msc”命令。就会看见如下窗口。它显示的是当前操作系统中系统自带的服务或者第三方软件安装的服务。服务的状态有名称、描述、启动状态、启动类型等等。你也可以在此窗体中管理相关服务,注意谨慎操作,防止系统错误或软件故障。 在此,为了让大家对后面使用的代码项目有个整体了解。整个专案有如下项目: 1、...
分类:Windows开发   时间:2015-02-04 10:59:36    收藏:0  评论:0  赞:0  阅读:349
winscp配置
WinSCPInstall and runWinSCPGo to Preferences (Ctrl+Alt+P) and click on Transfer, then on Add. Name the preset.Set the transfer mode to binary (you don...
分类:Windows开发   时间:2015-02-04 10:54:24    收藏:0  评论:0  赞:0  阅读:283
C#让WebBrowser滚动条自动上下滚动一定时间
namespace test_gundong{ public partial class Form1 : Form { int current = 0; Timer timeDown = new Timer(); Ti...
分类:Windows开发   时间:2015-02-04 10:42:14    收藏:0  评论:0  赞:0  阅读:386
如何在WIN7下安装虚拟机linux系统
需要支持多个平台的IT管理员经常会遇到如何在Windows 7计算机上安装Linux的问题。幸运的是有多种方法可供选择:双系统、Linux虚拟机和U盘引导。当需要用到Windows 7和Linux时,双系统环境是很好的选择。但是你必须确保有足够多的硬盘空间来安装和运行双系统上的应用程序或软件。使用双...
分类:Windows开发   时间:2015-02-04 10:37:54    收藏:0  评论:0  赞:0  阅读:191
c# 不同进制之间的转换
1.请问c#中如何将十进制数的字符串转化成十六进制数的字符串//十进制转二进制Console.WriteLine("十进制166的二进制表示:"+Convert.ToString(166,2));//十进制转八进制Console.WriteLine("十进制166的八进制表示:"+Convert.ToString(166,8));//十进制转十六进制Console.WriteLi..
分类:Windows开发   时间:2015-02-04 09:33:45    收藏:0  评论:0  赞:0  阅读:343
C#根据网址生成静态页面
根据网址生成页面的方法:C#代码boolCreateHtmlFile(stringurl,stringpath){//http://keleyi.com/a/bjae/3d10wfax.htmstringm_content=Utils.GetHtmlByUrl(Utils.GetAbsolutePa...
分类:Windows开发   时间:2015-02-04 09:16:04    收藏:0  评论:0  赞:0  阅读:299
c#队列的实现
/* 用一片连续的存储空间来存储队列中的数据元素,这样的队列称为顺序队列 (Sequence Queue)。类似于顺序栈,在这里我就不做介绍了,我们直接用列表实现一个队列 */using System;using System.Collections.Generic;using System.Lin...
分类:Windows开发   时间:2015-02-04 07:02:44    收藏:0  评论:0  赞:0  阅读:327
C#根据网址生成静态页面
HoverTree开源项目中HoverTreeWeb.HVTPanel的Index.aspx文件是后台管理的首页。包含生成留言板首页,以及显示用户名,退出等功能。根据网址生成页面的方法: ? bool CreateHtmlFile(string url, string path) { //http://keleyi.com/a/bjae/3d10wfax.htm string m_ ...
分类:Windows开发   时间:2015-02-04 02:10:17    收藏:0  评论:0  赞:0  阅读:230
ubuntu完全移除wine
In my case Wine did not get effectively uninstalled using the command: sudo apt-get --purge remove wine So I did the following: rm -rf $HOME/.wine rm -f $HOME/.config/menus/applications-merged/wine...
分类:Windows开发   时间:2015-02-04 02:03:14    收藏:0  评论:0  赞:0  阅读:358
rapidxml读取utf-8 格式xml乱码问题(utf-8格式转GBK)
1.我是用rapidxml文件读取utf-8格式的xml,但是显示乱码。我们需要把读出来的内容转为GBK格式,则能正常显示。 char * utf82gbk(char* strutf) { int size = MultiByteToWideChar(CP_UTF8, 0, strutf, -1, NULL, 0); // allocate a vector for that si...
分类:Windows开发   时间:2015-02-04 02:02:24    收藏:0  评论:0  赞:0  阅读:739
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!