虎贲小队程序猿

get along

导航

2013年4月23日 #

.NET Format String 101

摘要: "I see stuff like {0,-8:G2} passed in as a format string. What exactly does that do?" -- Very Confused String FormatterThe above format can be translated into this:"{<argument index>[,<alignment>][:<formatString><zeros>]}"argument index: This represent whi 阅读全文

posted @ 2013-04-23 13:52 jjssl 阅读(221) 评论(0) 推荐(0) 编辑

C# 引用C++动态库方法

摘要: 标准形式:[DllImport("KSJApi.dll")] public static extern int KSJ_PreviewSetPos( int nChannel, IntPtr hWnd, int x, int y, int nWidth, int nHeight );例子:using System;using System.Runtime.InteropServices;using System.Text;/// <summary>/// 2010.07.25 还有些简单函数没有列出,客户可参考例程自己加入/// </summary> 阅读全文

posted @ 2013-04-23 11:04 jjssl 阅读(954) 评论(0) 推荐(0) 编辑