摘要:
double interval = (double)1 / (endIndex - startIndex); interval = Math.Round(interval , 2); 阅读全文
摘要:
http://www.cppblog.com/diryboy/archive/2010/05/17/115550.aspx 阅读全文
摘要:
__stdcall 要加这个extern "C" __declspec(dllexport)要用这样的东东 定义extern "C" __declspec(dllexport) void GetCallBack( callBackFun pfun){ g_pFun=pfun;} 阅读全文
摘要:
bool System.Boolean 4Byte 32bit布尔型变量 逻辑值,true或者false,默认值为falsebyte System.Byte 1Byte 8bit无符号整数无符号的字节,所存储的值的范围是0~255,默认值为0sbyte System.SByte 1Byte8bit有符号整数带符号的字节,所存储的值的范围是-128~127,默认值为0char System.Char 2Byte 16bit 无符号Unicode字符,默认值为’... 阅读全文
摘要:
RESTORE DATABASE CCC FROM DISK = 'AAA.bak' with replace, MOVE 'BBB' TO 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER2008\MSSQL\DATA\CCC.mdf', MOVE 'BBB_LOg' TO 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER2008\MSSQL\DATA\CCC_log.ldf 阅读全文
摘要:
10.00.1600 :SQL2008 10.50.1600:SQL2008R2 10.50.2500:SQL2008R2SP1 阅读全文
摘要:
public static Bitmap ChangeOpacity(Image img, float opacityvalue) { Bitmap bmp = new Bitmap(img.Width,img.Height); // Determining Width and Height of Source Image Graphics graphics = Graphics.FromImage(bmp); ColorMatrix colormatrix = new ColorMatrix(); ... 阅读全文
摘要:
select TimeStamp,Handle1Matrix11 , Handle1Position1 from CoughDection.dbo.CoughTable where ExprimentNum=2 and Convert(varchar(20),TimeStamp,120) like '%2013-09-06 09:46:03%' 阅读全文
摘要:
public static byte[] Bitmap2Byte(Bitmap bitmap) { using (MemoryStream stream = new MemoryStream()) { bitmap.Save(stream , ImageFormat.Jpeg); byte[] data = new byte[stream.Length]; stream.Seek(0 , SeekOrigin.Begin); ... 阅读全文
摘要:
private void chart2_MouseMove(object sender, MouseEventArgs e) { if (!this.DesignMode) { double newPosition = chart2.ChartAreas[0].AxisX.ScaleView.Position; chart用户来电.ChartAreas[0].AxisX.ScaleView.Scroll(newPosition); ScrollB... 阅读全文