.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;
Ïà¹ØÎĵµ£º
ת×Ô£º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»Äܲ⣬û·¨²â£¬¾ÍÊÇ× ......
googletest C/C++ ²âÊÔ¿ò¼Ü·Ç³£ºÃÓ㬽éÉܼ°ÏÂÔØÇë¿´ http://code.google.com/p/googletest/
//============================================================================
// ʹÓà googletest ²âÊÔ¿ò¼Ü
//============================================================================
// Returns n! ......
/*
˼·£ºµÝ¹éËã·¨
´Ó¿ªÊ¼ÍùºóµÝÔöµØдÊý×Ö£¬µ±Ç°´ÓnowÖµ¿ªÊ¼£¬´æ´¢µÄλÖôÓcur¿ªÊ¼£¬
ÔòÏÔÈ»¼ÓÉÏ£¬now..n£¬¶¼ÊÇеÄ×éºÏÊý£¬¶ÔÓÚÿһ¸ö£¬{ Êä³öÖ®£¬È»ºóµÝ¹é£¬´¦Àí _c(n, cur+1, a, i+1) }
*/
/* Êä³ö1,2,3,..,nµÄ×éºÏÊý */
#include <stdio.h>
#include <assert.h>
#include <malloc.h>
void ......
#include <stdio.h>
#define bits(p, d) { \
int _tmp=p->d, _bits=0; \
for (p->d=1; p->d; p->d<<=1) \
_bits++; \
p->d=_tmp; \
printf("%s->%s has %d bits", #p, #d, _bits); \
}
typedef struct _s{
int a:4;
} S;
int main()
{
S tmp, ......