C#——µ÷Óô洢¹ý³Ì·½·¨
ÏÂÃæÊÇÎÒ×Ô¼º×ܽáµÄÒ»¸ö±È½Ï¼òµ¥µÄc#µ÷ÓÃSQL Server 2005´æ´¢¹ý³ÌµÄСÀý×Ó£¬Ö÷ÒªÊǽéÉÜÕû¸ö¹ý³Ì£¬ÓÐÎÊÌâµÄ»°Çë´óϺÃÇÖ¸µ¼£¬Ð»Ð»~
×÷Õߣºshinehoo
1£©´æ´¢¹ý³ÌÕâÑùдµÄ
ALTER PROCEDURE dbo.procShowLog
(
@StartTime datetime,
@EndTime datetime,
@LogSite varchar(20),
@UserName varchar(30)
)
AS
/* SET NOCOUNT ON
*/
BEGIN
IF(@UserName = ‘’)
BEGIN
select *
from tbLog where LogInTime
> @StartTime and LogInTime < @EndTime and LogSite = @LogSite;
END;
ELSE
BEGIN
select * from tbLog where LogInTime
> @StartTime and LogInTime < @EndTime and LogSite = @LogSite and UserName
= @UserName;
END;
RETURN
END;
2£©C#ÀïÃæÓи÷ÀàרÃŵ÷Óô洢¹ý³Ì
/// <summary>
/// Ö´Ðд洢¹ý³Ì·µ»ØÒ»¸ö±í¡£
/// </summary>
/// <param
name="proName">´æ´¢¹ý³ÌÃû</param>
/// <param
name="paraValues">²ÎÊýÖµÁбí</param>
/// <returns>DataTable¶ÔÏó</returns>
public static DataTable getDataTable(string proName, SqlParameter[]
paraValues)
{
SqlConnection
sqlcon = getConnection();
&nbs
Ïà¹ØÎĵµ£º
ed2k://|file|[ReadFree]_C#.¿ª·¢ÈËÔ±Ö¸ÄÏ——ASP_NET¡¢XML¡¢web·þÎñÓë.ADO_NET_11030729.rar|6563070|B1CBF4D0032C8D78FB10F5F2AE6C3882|/
ed2k://|file|[ReadFree]_C#ÍøÂçÓ¦Óñà³Ì_11041620.rar|8063056|7044A65903D86BF88BE8AF26D8E02B61|/
ed2k://|file|[ReadFree]_Java.P2P³ÌÐòÉè¼Æ_11052086.rar|8742852| ......
1¡¢C/C++³ÌÐòÔ±Çë×¢Ò⣬²»ÄÜÔÚcaseÓï¾ä²»Îª¿Õʱ“ÏòÏÂÖ´ÐД¡£
2¡¢ÖµÀàÐͺÍÒýÓÃÀàÐÍÖ®¼äµÄÇø±ð£ºC#µÄ»ù±¾ÀàÐÍ£¨int£¬charµÈ£©¶¼ÊÇÖµÀàÐÍ£¬ÊÇÔÚÕ»Öд´½¨µÄ¡£¶ø¶ÔÏóÊÇÒýÓÃÀàÐÍ£¬´´½¨ÓÚ¶ÑÖУ¬ÐèҪʹÓùؼü×Önew¡£
3¡¢ÔÚC#ÖÐͨ¹ýʵÀý·ÃÎʾ²Ì¬·½·¨»ò³ÉÔ±±äÁ¿ÊDz»ºÏ·¨µÄ£¬»áÉú³É±àÒëÆ÷´íÎó¡£µ«ÊÇÎÒÃÇ¿ÉÒÔͨ¹ýÉùÃ÷ËûÃÇ ......
ίÍкÍʼþÔÚ .Net FrameworkÖеÄÓ¦Ó÷dz£¹ã·º£¬È»¶ø£¬½ÏºÃµØÀí½âίÍкÍʼþ¶ÔºÜ¶à½Ó´¥C#ʱ¼ä²»³¤µÄÈËÀ´Ëµ²¢²»ÈÝÒס£ËüÃǾÍÏñÊÇÒ»µÀ¼÷¶ù£¬¹ýÁËÕâ¸ö¼÷µÄÈË£¬¾õµÃÕæÊÇÌ«ÈÝÒ×ÁË£¬¶øÃ»ÓйýÈ¥µÄÈËÿ´Î¼ûµ½Î¯ÍкÍʼþ¾Í¾õµÃÐÄÀï±ð£¨bi裩µÃ»Å£¬»ìÉí²»×ÔÔÚ¡£±¾ÎÄÖУ¬ÎÒ½«Í¨¹ýÁ½¸ö·¶ÀýÓÉdzÈëÉîµØ½²ÊöʲôÊÇίÍС¢ÎªÊ²Ã´ÒªÊ¹Ó ......
·þÎñÆ÷¶Ë´úÂë
¿Ø¼þ£ºbtnStart_Click£¬btnSend_Click£¬label4£¬textBox1
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Collections;
using System.Threading;
using S ......
¶¯Ì¬¼ÓÔØDLLÐèҪʹÓÃWindows APIº¯Êý£ºLoadLibrary¡¢GetProcAddressÒÔ¼°FreeLibrary¡£ÎÒÃÇ¿ÉÒÔʹÓÃDllImportÔÚC#ÖÐʹÓÃÕâÈý¸öº¯Êý¡£
[DllImport("Kernel32")]
public static extern int GetProcAddress(int handle, String funcname);
[DllImport("Kernel32")]
public static extern int L ......