Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Visual c++ 6.0 ADO access

ADO¿â°üº¬Èý¸ö»ù±¾½Ó¿Ú:_ConnectionPtr½Ó¿Ú¡¢_CommandPtr½Ó¿ÚºÍ_RecordsetPtr½Ó¿Ú¡£
_ConnectionPtr½Ó¿Ú·µ»ØÒ»¸ö¼Ç¼¼¯»òÒ»¸ö¿ÕÖ¸Õë¡£
ͨ³£Ê¹ÓÃËüÀ´´´½¨Ò»¸öÊý¾ÝÁ¬½Ó»òÖ´ÐÐÒ»Ìõ²»·µ»ØÈκνá¹ûµÄSQLÓï¾ä£¬ÈçÒ»¸ö´æ´¢¹ý³Ì¡£
ʹÓÃ_ConnectionPtr½Ó¿Ú·µ»ØÒ»¸ö¼Ç¼¼¯²»ÊÇÒ»¸öºÃµÄʹÓ÷½·¨¡£
ͨ³£Í¬CdatabaseÒ»Ñù£¬Ê¹ÓÃËü´´½¨Ò»¸öÊý¾ÝÁ¬½Ó£¬È»ºóʹÓÃÆäËü¶ÔÏóÖ´ÐÐÊý¾ÝÊäÈëÊä³ö²Ù×÷¡£
_CommandPtr½Ó¿Ú·µ»ØÒ»¸ö¼Ç¼¼¯¡£
ËüÌṩÁËÒ»ÖÖ¼òµ¥µÄ·½·¨À´Ö´Ðзµ»Ø¼Ç¼¼¯µÄ´æ´¢¹ý³ÌºÍSQLÓï¾ä¡£
ÔÚʹÓÃ_CommandPtr½Ó¿Úʱ£¬Äã¿ÉÒÔÀûÓÃÈ«¾Ö_ConnectionPtr½Ó¿Ú£¬Ò²¿ÉÒÔÔÚ_CommandPtr½Ó¿ÚÀïÖ±½ÓʹÓÃÁ¬½Ó´®¡£
Èç¹ûÄãÖ»Ö´ÐÐÒ»´Î»ò¼¸´ÎÊý¾Ý·ÃÎʲÙ×÷£¬ºóÕßÊDZȽϺõÄÑ¡Ôñ¡£
µ«Èç¹ûÄãҪƵ·±·ÃÎÊÊý¾Ý¿â£¬²¢Òª·µ»ØºÜ¶à¼Ç¼¼¯£¬ÄÇô£¬ÄãÓ¦¸ÃʹÓÃÈ«¾Ö_ConnectionPtr½Ó¿Ú´´½¨Ò»¸öÊý¾ÝÁ¬½Ó£¬
È»ºóʹÓÃ_CommandPtr½Ó¿ÚÖ´Ðд洢¹ý³ÌºÍSQLÓï¾ä¡£
_RecordsetPtrÊÇÒ»¸ö¼Ç¼¼¯¶ÔÏó¡£
ÓëÒÔÉÏÁ½ÖÖ¶ÔÏóÏà±È£¬Ëü¶Ô¼Ç¼¼¯ÌṩÁ˸ü¶àµÄ¿ØÖƹ¦ÄÜ£¬Èç¼Ç¼Ëø¶¨£¬Óαê¿ØÖƵÈ
¡£Í¬_CommandPtr½Ó¿ÚÒ»Ñù£¬Ëü²»Ò»¶¨ÒªÊ¹ÓÃÒ»¸öÒѾ­´´½¨µÄÊý¾ÝÁ¬½Ó£¬
¿ÉÒÔÓÃÒ»¸öÁ¬½Ó´®´úÌæÁ¬½ÓÖ¸Õ븳¸ø_RecordsetPtrµÄconnection³ÉÔ±±äÁ¿£¬ÈÃËü×Ô¼º´´½¨Êý¾ÝÁ¬½Ó¡£
Èç¹ûÄãҪʹÓöà¸ö¼Ç¼¼¯£¬×îºÃµÄ·½·¨ÊÇͬCommand¶ÔÏóÒ»ÑùʹÓÃÒѾ­´´½¨ÁËÊý¾ÝÁ¬½ÓµÄÈ«¾Ö_ConnectionPtr½Ó¿Ú
£¬È»ºóʹÓÃ_RecordsetPtrÖ´Ðд洢¹ý³ÌºÍSQLÓï¾ä¡£
(1)³õʼ»¯COM¿â£¬ÒýÈëADO¿â¶¨ÒåÎļþ
(2)ÓÃConnection¶ÔÏóÁ¬½ÓÊý¾Ý¿â
(3)ÀûÓý¨Á¢ºÃµÄÁ¬½Ó£¬Í¨¹ýConnection¡¢Command¶ÔÏóÖ´ÐÐSQLÃüÁ»òÀûÓÃRecordset¶ÔÏóÈ¡µÃ½á¹û¼Ç
¼¼¯½øÐвéѯ¡¢´¦Àí¡£
(4)ʹÓÃÍê±Ïºó¹Ø±ÕÁ¬½ÓÊͷŶÔÏó¡£
ÎÒÃÇ¿ÉÒÔʹÓÃAfxOleInit()À´³õʼ»¯COM¿â£¬ÕâÏ×÷ͨ³£ÔÚCWinApp::InitInstance()µÄÖØÔغ¯ÊýÖÐÍê
³É£¬Çë¿´ÈçÏ´úÂë:
BOOL CADOTest1App::InitInstance()
{
AfxOleInit();
......
}
ÎÒÃÇÔÚstdafx.hÖмÓÈëÈçÏÂÓï¾ä£º
#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF")
Æä×îÖÕ×÷ÓÃͬÎÒÃÇÊìϤµÄ#includeÀàËÆ,±àÒëµÄʱºòϵͳ»áΪÎÒÃÇÉú³Émsado15.tlh,ado15.tliÁ½¸öC++Í·ÎļþÀ´¶¨ÒåADO¿â¡£
Ê×ÏÈÎÒÃÇÐèÒªÌí¼ÓÒ»¸öÖ¸ÏòConnection¶ÔÏóµÄÖ¸Õë:
_ConnectionPtr m_pConnection;
BOOL CADOTest1Dlg::OnInitDialog()
{
CDialog::OnInitDialog();
try
{
HRESULT hr = m_pConnection.CreateInstance("ADO


Ïà¹ØÎĵµ£º

CÓëC++Óï·¨µÄ²»Í¬µã

LinuxÏÂͨ³£Ê¹ÓÃÃâ·ÑµÄ±àÒëÆ÷gcc¡£ÆäÖÐgccÖ÷ÒªÓÃÀ´±àÒëCÓïÑÔ´úÂ룬g++Ö÷ÒªÓÃÀ´±àÒëC++´úÂë¡£Èç¹ûÏëÓÃgcc±àÒëc³ÌÐò£¬ÔòҪעÒâCÓëC++¶ÔÓï·¨ÒªÇóµÄ²»Í¬µã£¬ÀýÈ磺
1) C³ÌÐòÊÇ´Ómainº¯Êý¿ªÊ¼£¬C++³ÌÐòÊÇ´ÓÈ«¾Ö±äÁ¿µÄ¹¹Ô캯Êý¿ªÊ¼
2) ±äÁ¿±ØÐëÉùÃ÷ÔÚÓï¾äÇ°
3) Ã»ÓÐboolÀàÐÍ
4) ÉùÃ÷ö¾Ù±äÁ¿ÊDZØÐëÔÚö¾Ù ......

EclipseÏÂÀûÓÃVC±àÒëÆ÷±àдC/C++³ÌÐò

°²×°eclipse-cpp-galileo-win32.zip
ÒÔÏÂÊÇ×îÐÂeclipse cpp ¿ª·¢IDE
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/eclipse-cpp-galileo-SR1-win32.zip
ÉèÖÃmake³ÌÐò
ÉèÖÃbinary parser
н¨Ò»¸öC++¹¤³Ì
±àдͷÎļþ
 
±àдʵÏÖ
 
¸ÄдMakefile ¡ ......

C/C++±à³ÌGUI¿â±È½Ï

×îÇ¿µÄGUI¿âµ±ÊôQt£¬±Ï¾¹ÊÇÉÌÒµ»¯µÄ¶«Î÷£¬¹¦ÄÜ×îÍêÕû£¬Ê²Ã´¶¼ºÃ£¬°üÀ¨ÀàËÆjava´úÂë·ç¸ñ£¬Á¼ºÃµÄ¿ò¼ÜÉè¼Æ£¬µ«Óм¸µãÖµµÄÒ»Ì᣺
     1.ËüûÓÐʹÓÃSTL£¬¶øÊÇ×Ô¼ºÊµÏÖÁËÒ»Ì×Ìæ´ú·½°¸QTL£»
     2.ʼþÄ£ÐÍʹÓÃ×Ô´´µÄsignal/slot»úÖÆ£¬ËùÒÔÐèÒªmoc.exeÀ´Ô¤´¦ÀíÍ·Îļþ£»
  &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ