随笔分类 - 13 [原创天地]
1
有趣的MessageBox之X button的Enable和disable
摘要:大家对这个MessageBox 肯定都不陌生,但有谁注意到对话框右上角的x button,什么情况下是enable,什么情况下是disable的?一下为msdn的官方解释:1. http://msdn.microsoft.com/en-us/library/system.windows.messagebox.aspxTo enable a user to close a message box, Show displays a message box that has an OK button and a Close button in the title bar.2. http://sta.
阅读全文
Serialize And Deserialize Binary Tree
摘要:1. Serialize And Deserialize Binary TreeusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceSerializeAndDeserializeBinaryTree{classProgram{staticvoidMain(string[]args){//TestserializeList<string>serializeResult=newList<string>();nodes<string>rootN
阅读全文
Winform中的默认图片
摘要:1.如何取的winform程序中的默认图片,其实这个图片你用windows收索是收不到的,因为它被包含在dll中,具体实现如下:It is stored as a resource in the System.Windows.Forms.dll assembly. You could get a copy with Reflector. Open the assembly, open the Resources node, all the way down to "wfc.ico". Right-click, Save As. Not sure why you'd
阅读全文
(原创)批处理中变量的用法
摘要:批处理中变量的用法@echo off:SEcho Please input the start partset/p start=if "%start%"=="" goto SEcho Please input the middle partSet /p middle=Echo Please input the end partSet /p end=Set /p all= the above three part =%start%%middle%%end%@echo %all%pause
阅读全文
【原创】我的批处理命令例子
摘要:@echooff:Startchoice/cSR/m"Startthebrandingwork(S),rollback(R)"iferrorlevel2gotoRiferrorlevel1gotoSREM==========================================================================================================:SEchopleaseinputyourMobilityfolderandenter,like:E:\Bob_Code\Mobilityset/paa=cd/d%
阅读全文
如何在一个进程中启动另外一个线程:ProcessStartInfo Constructor
摘要:Initializes a new instance of the ProcessStartInfo class.This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.Overload List NameDescriptionProcessStartInfo()Initializes a new instance of the ProcessStartInfo .
阅读全文
DLL version issue and SQL Parameters Issue
摘要:1. 在工程中Reference dll: 1).specify version: true or false should be same.Other wise, there will be conflick between these dlls expecily that have depence. 2). We can set all of them are true or all false.2.SqlException: The parameterized query ## expects the pa... RSS Resolved.publicvoidUpdateTableInf
阅读全文
Project Summary
摘要:1. A tool to add xml comment:GhostDoc is a free Visual Studio extension that automatically generates XML documentation comments for methods and properties based on their type, parameters, name, and ot...
阅读全文
How to use TFS API
摘要:1. Team Foundation Server SDK : http://msdn.microsoft.com/en-us/library/bb130146(v=VS.80).aspx2. Understanding the Data Warehouse Architecture: http://msdn.microsoft.com/en-us/library/ms244687(v=VS.90...
阅读全文
Team Foundation Server Beta3 安装指南 (MSDN)
摘要:1. Team Foundation Server Beta3 安装指南: http://www.microsoft.com/china/msdn/library/langtool/vsts/TFSBeta3.mspx?mfr=true2. Team Foundation Server 2010: http://msdn.microsoft.com/en-us/vstudio/ff637362.a...
阅读全文
SharePoint 学习笔记(一)
摘要:1. Ramp Up : 1):Track: SharePoint for Developers – Part 1: http://msdn.microsoft.com/en-us/rampup/dd221355.aspx 2):Track: SharePoint for Developers – Part 2: http://msdn.microsoft.com/en...
阅读全文
Excel表格加下列选择框
摘要:1.Data(数据) ->Data Validation(数据有效性) ->Settings(设置) ->List(列) ->Source(数据源)-> Add the souce by ","(自己写数据源: 如1,2,2).
阅读全文
Free Computer Books, Free eBooks and Read Free Books Online
摘要:1.Download Legally Free Computer Books, Free eBooks and Read Free Books Online:http://www.onlinecomputerbooks.com/2. Free ebook .NET Framework Developer's Guide http://www.onlinecomputerbooks.com/view...
阅读全文
[原创]DateTime在使用 format Custom Date and Time Format Strings时遇到的问题和解决方法
摘要:Please see the following code first:More information about Custom Date and Time Format Strings:http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx#zzSpecifierDate and Time Format Stringshttp://mis2....
阅读全文
strstr()的简单实现
摘要:strstr()的简单实现strstr(s1,s2)是一个经常用的函数,他的作用就是在字符串s1中寻找字符串s2如果找到了就返回指针,否则返回NULL。下面是这个函数的一个简单实现:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->staticconstchar*_strstr(constchar*s1,constchar*s2){assert(s2&&s1);constchar*p=s1,*r=s2;while(*p!=
阅读全文
Usefully Web Site for search MS technicalog like .net
摘要:http://forums.asp.net/t/1502389.aspx
阅读全文
逻辑出错的情况下加了判断来防止抛出exception, 是否合理?
摘要:场景: A通过UI来创建,UI会检查A的有效性,无效的话是创建不出来的。那么我在使用从数据库Query 得到的A,我默认情况下,认为它是有效的,没有加判断。只有在此A是无效的情况下,调用A的地方,才有可能出错。我的问题是既然A是无效的,加了判断来防止抛出exception, 这样做是否合理?因为A本来就是无效的,不抛出Exception也仅仅是隐藏这个问题,反而更加难以发现这个问题。我到认为抛出E...
阅读全文
How to use Reflector to see the code of .net framework
摘要:1. Reflector -> Search Type (String)2.String.format() double click, you will see the code of the method by the reflector.Download Reflector from:http://reflector.red-gate.com/download.aspx?TreatAsU...
阅读全文
宏定义学习笔记之一:初入江湖
摘要:源文件代码如下:[代码]头文件代码如下:abc.h[代码]替换后代码如下:[代码]执行后哦输出如下:hello! good morning!
阅读全文
C++第一课: API及指针的使用 (指针与数组的区别,*p, p ,&p的不同含义)
只有注册用户登录后才能阅读该文。
1
浙公网安备 33010602011771号