自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

原创 COM Interop Presentation comments

&Agenda=========================•What is COM•Why use COM•C++ COM•C# COM•C++ Console calls C++ COM•C# calls unmanaged C++•Managed C++ calls C#•Im...

2011-06-29 17:55:00 1443 0

原创 Mapping type between C++ and C#

 API Data TypeType DescriptionC# TypeAPI Data TypeType DescriptionC# TypeWORD16 bit unsigned intushortCHARcharchar

2011-06-16 17:42:00 2013 0

原创 C++ Types

 LPCWSTRLPCWSTR 是Unicode字符串指针,typedef __nullterminated CONST WCHAR *LPCWSTR, *PCWSTR; in WinNT.hConvert example: LPCWSTR text;LPWSTR l=const_cast(tex...

2011-06-16 17:03:00 1968 0

原创 Process relationship command

 C:/Windows/system32>netstat -b Active Connections   Proto  Local Address          Foreign Address        State  TCP    10.195.174.54:3389     172...

2011-06-16 16:58:00 1141 0

原创 WSDL.EXE - Microsoft (R) Web Services Description Language Utility

 Microsoft (R) Web Services Description Language Utility[Microsoft (R) .NET Framework, Version 4.0.30319.1]Copyright (C) Microsoft Corporation. All r...

2011-06-16 16:55:00 1278 0

原创 How to determine if a machine is localhost?

 Dns.GetHostEntry(remote).HostName == Dns.GetHostEntry(“localhost”).HostName

2011-06-16 16:51:00 1110 0

原创 Group, Greedy and Lazy in Regular Expression

 (…) means a group, group can have a name, form is: (?’groupname’…) or (?…)each group has a GroupID (from 1 to infinite), group 0 is the whole matche...

2011-06-16 16:50:00 1310 0

原创 Expression

 +expr-exprexpr*exprexpr/exprexpr%exprexpr+exprexpr-expr !exprexprexprexpr>exprexpr>=exprexpr==exprexpr!=exprexpr&&exprexpr||expr ~expr...

2011-06-16 16:48:00 1030 0

原创 Array and pointor

 int ia[]={ 0, 1, 2, 3, 4, 5};for(size_t i=0;i!= 6;i++)cout    --------------------------------------------------------------------------------------...

2011-06-16 16:47:00 1083 0

原创 Standard library type

 Key types: string, vector, bitset, companion type   string s1;string s2(s1);string s3("value");string s4(n,c);  string line;while(getline(...

2011-06-16 16:46:00 1294 0

原创 Variable and basic type

 extern int i;//declares but does not define iint i(0);//declares and defines I, init i as 0extern int i=1;//initial i as 1Can declares multiple time...

2011-06-16 16:45:00 1152 0

原创 Basic knowledge

 GNU compiler:G++ ProgramTest.cc -o ProgramTest(Unix)Default no "-o" parameter compile to a.outG++ ProgramTest.cc -o ProgramTest.exe(Window...

2011-06-16 16:44:00 1065 0

原创 Life Cycle of Object

 Garbage collection, managed heap. Set object to null.Application root.Generation. System.GC typeGC.Collect();GC.WaitForPendingFinalizers();  class A...

2011-06-16 16:43:00 1118 0

原创 System.Exception

 public class Exception: Iserializable, _Exception{...}  //throw new Exception("..."); try{...}catch(Exception e){…//e.TargetSite//e.StackT...

2011-06-16 16:42:00 1213 0

原创 Define encapsulate class type

 Encapsulation: encapsulate implement details and hide data.Inheritance: inherit base classs function and extend base classs behaviorPolymorphism: in...

2011-06-16 16:41:00 1186 0

原创 Inheritance and polymorphism

 sealed keyword.base keyword.protected keyword.Contain/delegate model(has-a relationship):Class A{}Partial class B{  protected A a=new A();}public pa...

2011-06-16 16:41:00 1222 0

原创 Program Structure II

 Value: stack, System.ValueTypeout: neednt initial before use. Should be initial before use ref. Memory: managed heapparams : dynamical array. overlo...

2011-06-16 16:40:00 1043 0

原创 Main function

  static int Main(string[] args)         {         …           string[] the Args=Environment.GetCommandLineArgs();           foreach(string arg in th...

2011-06-16 16:39:00 987 0

原创 Program Structure

 CLS: bool, byte, short, int, long, char, float, double, decimal, string, objectNon-CLS:sbyte, ushort, uint, ulong Default Valuebool b=new bool();//d...

2011-06-16 16:39:00 1103 0

原创 csc.exe

 /out/target:exe/target:library/target:module/target:winexe Sample:Csc /target:exe TestApp.csCsc /t:exe TestApp.csCsc TestApp.cs Csc /r:System.Window...

2011-06-16 16:38:00 1368 0

原创 BAT test

 @echo offRem A batch file for SimpleCSharpApp.exeRem which captures the apps return value SimpleCSharpApp@if "%ERRORLEVEL%" == "0&quo...

2011-06-16 16:38:00 1523 0

原创 Advantage of CSharp

 1.No pointers.2.Garbage collector can manage automatically memory.3.Class, interface, enumeration, structure and delegate has official grammar struc...

2011-06-16 16:37:00 963 0

原创 CLR, CTS and CLS

 CLR(Common Language Runtime) managedCTS(Common Type System) Implement variable compatible type of COM and define the way of use user-defined type to...

2011-06-16 16:34:00 974 0

提示
确定要删除当前文章?
取消 删除