.NET C/S(WinForm)¿ª·¢¼¼ÇɵãµÎ
»¨·ÑÁËÊ®Ììʱ¼ä£¬Îª¹«Ë¾¿ª·¢ÁËÒ»Ì×¼òµ¥µÄÍøÂç°æµÄÐÅÏ¢¹ÜÀíϵͳ,¹¦ÄÜÖ÷ÒªÓпͻ§ÐÅÏ¢¹ÜÀí,Ô±¹¤ÐÅÏ¢¹ÜÀí,³£ÓÃÐÅÏ¢¹ÜÀí(¸÷ÖÖÐź¯´òÓ¡¡¢³£ÓÃÍøÖ·/³£Óõ绰µÈ),¹«Ë¾¼òµ¥µÄ²ÆÎñ¹ÜÀíµÈ¡£°ÑһЩµãµãµÎµÎµÄ¼¼ÇÉÔڴ˼ǼÏÂÀ´£¬ÒÔ±¸²éÓá£
1.Êý¾Ý°ó¶¨¡£ DataReader ¶ÁÈ¡Êý¾Ý£¬ÓÃDataTable.Load(IDataReader)·½·¨½«Êý¾Ý¼ÓÔص½ DataTable £¬ÓÃDataGridView ÏÔʾÊä³ö¡£²»Òª°ÑDataGridViewÖ±½Ó°ó¶¨µ½DataReaderµÄÄ¿µÄÊÇÊý¾Ýµ¼³öµ½Excelʱ£¬Êý¾ÝÔ´¿ÉÒÔÔٴδÓDataGridView»ñµÃ¡£
²»ÒªÔÚ DataGridView ÄÚ±à¼Ìí¼ÓÊý¾Ý£¬ÒòΪÊý¾ÝÀàÐͼì²é²»Ñϸñ(»òÒªÑϸñ¼ì²éÀàÐÍÐèÒª»¨·Ñ¸ü´óµÄ³É±¾)¡£
2.Êý¾Ýµ¼³öµ½ Excel ¡£´úÂëÈçÏ£º
/**//// <summary>
///
/// ** DataTable Êý¾Ýµ¼³öµ½ Excel **
///
/// Author: ÖÜÕñÐË (Zxjay Ʈң)
///
/// E-Mail: tda7264@163.com
///
/// Blog: http://blog.csdn.net/zxjay
///
/// Date: 07-08-31
///
/// </summary>
Excel.Application app = new Excel.Application();
app.Visible = false;
Excel.Workbook wb = app.Workbooks.Add(true);
Excel.Worksheet ws = (Excel.Worksheet)wb.Worksheets.Add(Type.Missing, Type.Missing, Type.Missing,
Type.Missing);
DataTable dt = (DataTable)dgvClientInfo.DataSource;
for (int i = 0; i < dt.Columns.Count; i++)
...{
ws.Cells[1, i + 1] = dt.Columns[i].ColumnName;
Ïà¹ØÎĵµ£º
ͻ񻣼
ÔÚѧϰlinuxÄں˴úÂ뼰һЩ¿ªÔ´Èí¼þµÄÔ´Â루È磺DirectFB£©£¬¾³£¿ÉÒÔ¿´µ½ÓйØ
__attribute__µÄÏà¹ØʹÓᣱ¾ÎĽáºÏ×Ô¼ºµÄѧϰ¾Àú£¬½ÏΪÏêϸµÄ½éÉÜÁË__attribute__
Ïà¹ØÓï·¨¼°ÆäʹÓá£
---------------------------------------------------------
ÉùÃ÷£º
´ËÎÄΪԴ´£¬»¶ÓתÔØ£¬×ªÔØÇë±£ÁôÈçÏÂÐÅÏ¢
& ......
ÌâÍâƪ£ºµ¥Ôª²âÊÔÄÑÓÚ³¤ÆÚ¼á³ÖµÄÔÒòÓë½â¾ö̽ÌÖ
ÉÏһƪ¡¶µ¥Ôª²âÊÔЧÒæ¡·£¬ÓÐÍøÓÑÆÀÂÛ˵£º“µ¥Ôª²âÊԵĺô¦»ù±¾ÈËÈËÖªµÀ£¬¾ÍÊÇÄѼá³Ö£¡”¡£ÕâÒ»ÆÀÂÛÑÏÖØÌáÐÑÁËÎÒ£¬²»´í£¬“ÄѼá³Ö”Ò²ÊÇÒ»¸öÆÕ±éÏÖ×´¡£Èç¹û²»Äܼá³Ö£¬ÄÇÒ»Çж¼ÊÇ°×´î¡£Òò´Ë£¬ÕâÀï²åÈëÒ»¸öÌâÍâƪ£¬Ì½ÌÖµ¥Ôª²âÊÔÄÑÓÚ³¤Æ ......
ת×Ô£ºhttp://dev.yesky.com/12/3067012.shtml
¶¯Ì¬Á¬½Ó¿âµÄ´´½¨²½Ö裺
¡¡¡¡Ò»¡¢´´½¨Non-MFC DLL¶¯Ì¬Á´½Ó¿â
¡¡¡¡1¡¢´ò¿ªFile —> New —> ProjectÑ¡ÏѡÔñWin32 Dynamic-Link Library —>sample project
¡¡¡¡—>¹¤³ÌÃû£ºDllDemo
¡¡¡¡2¡¢Ð½¨Ò»¸ö.hÎļþDllDemo.h
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º
......
µÚ¶þÕ Õ÷·þ¿É²âÐÔÄÑÌâ
2.1 ¿É²âÐÔÎÊÌâÏê½â£¨1£©
µ¥Ôª²âÊÔЧÒæÌرð¸ß£¬·½·¨Ò²ºÜ¼òµ¥£¬µ«È´³¢ÊÔµÄÆóÒµºÜ¶à£¬³É¹¦ÊµÊ©µÄÆóÒµºÜÉÙ£¬ÎªÊ²Ã´ÄØ£¿Ö÷ÒªÔÒò¾ÍÊÇÄÑÓÚÍ»ÆƿɲâÐÔÎÊÌâ¡£“¿É²â”Õâ¸ö´Ê£¬Òâ˼ÒѾºÜÃ÷°×ÁË£¬Èç¹û²»“¿É²â”µÄ»°£¬ÄǾÍÊDz»Äܲ⣬û·¨²â£¬¾ÍÊÇ× ......
//ijˮÍõµÄ·¢ÌûÊý³¬¹ý×ÜÌùÊýµÄÒ»°ë£¬ÕÒ³öÖ®
int find(int *ID, int N)
{
int candidate;
int nTimes, i;
for (i = nTimes = 0; i < N; i++)
{
if (nTimes == 0)
{
candidate = ID[i];
nTimes = 1;
}
else if (candidate == ID[i])
{
nTimes++;
}
else
{
nTimes--;
......