LinuxÏÂC++¿ª·¢¹¤¾ß½éÉÜ
¡¡¡¡¸ÅÊö
¡¡¡¡¾ÍC£«£«¿ª·¢¹¤¾ß¶øÑÔ£¬ÓëWindowsÏÂ΢Èí£¨VC£¬ VS2005µÈ£©Ò»Í³ÌìÏÂÏà±È£¬Linux/UnixÏÂC£«£«¿ª·¢£¬¿ÉνÎ廨°ËÃÅ£¬¸÷ʽ¸÷Ñù¡£Emacs, vi, eclipse, anjuta£¬kdevelopµÈ²ã³ö²»Çî¡£
¡¡¡¡WindowsÏ£¬¿ª·¢¹¤¾ß¶àÒÔ¼¯³É¿ª·¢»·¾³IDEµÄÐÎʽչÏÖ¸ø×îÖÕÓû§¡£ÀýÈ磬VS2005¼¯³ÉÁ˱à¼Æ÷£¬ºê»ã±àml£¬C /C++±àÒëÆ÷cl£¬×ÊÔ´±àÒëÆ÷rc£¬µ÷ÊÔÆ÷£¬ÎĵµÉú³É¹¤¾ß, nmake¡£ËüÃÇÒÔ¼¯³É·½Ê½Ìṩ¸ø×îÖÕÓû§£¬¶ÔÓÚ³õѧÕ߶øÑÔÊ®·Ö·½±ã¡£µ«ÊÇ£¬ÕâÖÖÉÌҵģʽ£¬Ö±½Óµ¼ÖÂÓû§¿É¶¨ÖÆÐԲ²»ÀûÓÚ×Ô¶¯»¯£¬¼¯³ÉµÚÈý·½¹¤¾ßµÄÄÜÁ¦Èõ¡£ÀýÈ磬ÎÞ·¨¶¨ÖÆһЩºêÀ´´¦ÀíһЩÖظ´²Ù×÷£»Ìå»á²»µ½×Ô¶¯»¯makefileÒ»²½µ½Î»¿ì¸Ð£»ÎÞ·¨Ô¶³ÌµÇ¼µ½·þÎñÆ÷ÉϽøÐпª·¢£»ÎÞ·¨Ê¹ÓÃijÖÖ”Õ³ºÏ¼Á”À´°ÑµÚÈý·½¹¤¾ß£¨ÀýÈ磬Îı¾¹¤¾ß£¬×Ö·û´®¹¤¾ß£©ÓÐЧµØµ÷ÓÃÆðÀ´¡£¿ÉÒÔ˵£¬Á¼ºÃµÄÉÌÒµÖ§³ÖºÍɵ¹Ïʽ¿ª·¢£¬ÊÇËüÃÇÖ÷ÒªµÄÓŵ㡣
¡¡¡¡ÔÚlinuxÏ£¬¿ª·¢¹¤¾ß±»Çиî³ÉÒ»¸ö¸ö¶ÀÁ¢µÄС¹¤¾ß¡£¸÷×Ô´¦Àí²»Í¬µÄÎÊÌâ¡£ÀýÈ磬±à¼Æ÷£¨emacs, vim)ÓÃÀ´½øÐб༳ÌÐòµÄ£¬µ÷ÊÔÆ÷£¨gdb)ÓÃÀ´µ÷ÊÔ³ÌÐò£¬±àÒëÆ÷£¨GCC£©ÓÃÀ´±àÒëºÍÁ´½Ó³ÌÐòµÄ£¬ÐÔÄÜ·ÖÎö¹¤¾ß£¨gcov, gprof)ÓÃÀ´ÓÅ»¯³ÌÐòµÄ£¬ÎĵµÉú³ÉÆ ......
LinuxÏÂC++¿ª·¢¹¤¾ß½éÉÜ
¡¡¡¡¸ÅÊö
¡¡¡¡¾ÍC£«£«¿ª·¢¹¤¾ß¶øÑÔ£¬ÓëWindowsÏÂ΢Èí£¨VC£¬ VS2005µÈ£©Ò»Í³ÌìÏÂÏà±È£¬Linux/UnixÏÂC£«£«¿ª·¢£¬¿ÉνÎ廨°ËÃÅ£¬¸÷ʽ¸÷Ñù¡£Emacs, vi, eclipse, anjuta£¬kdevelopµÈ²ã³ö²»Çî¡£
¡¡¡¡WindowsÏ£¬¿ª·¢¹¤¾ß¶àÒÔ¼¯³É¿ª·¢»·¾³IDEµÄÐÎʽչÏÖ¸ø×îÖÕÓû§¡£ÀýÈ磬VS2005¼¯³ÉÁ˱à¼Æ÷£¬ºê»ã±àml£¬C /C++±àÒëÆ÷cl£¬×ÊÔ´±àÒëÆ÷rc£¬µ÷ÊÔÆ÷£¬ÎĵµÉú³É¹¤¾ß, nmake¡£ËüÃÇÒÔ¼¯³É·½Ê½Ìṩ¸ø×îÖÕÓû§£¬¶ÔÓÚ³õѧÕ߶øÑÔÊ®·Ö·½±ã¡£µ«ÊÇ£¬ÕâÖÖÉÌҵģʽ£¬Ö±½Óµ¼ÖÂÓû§¿É¶¨ÖÆÐԲ²»ÀûÓÚ×Ô¶¯»¯£¬¼¯³ÉµÚÈý·½¹¤¾ßµÄÄÜÁ¦Èõ¡£ÀýÈ磬ÎÞ·¨¶¨ÖÆһЩºêÀ´´¦ÀíһЩÖظ´²Ù×÷£»Ìå»á²»µ½×Ô¶¯»¯makefileÒ»²½µ½Î»¿ì¸Ð£»ÎÞ·¨Ô¶³ÌµÇ¼µ½·þÎñÆ÷ÉϽøÐпª·¢£»ÎÞ·¨Ê¹ÓÃijÖÖ”Õ³ºÏ¼Á”À´°ÑµÚÈý·½¹¤¾ß£¨ÀýÈ磬Îı¾¹¤¾ß£¬×Ö·û´®¹¤¾ß£©ÓÐЧµØµ÷ÓÃÆðÀ´¡£¿ÉÒÔ˵£¬Á¼ºÃµÄÉÌÒµÖ§³ÖºÍɵ¹Ïʽ¿ª·¢£¬ÊÇËüÃÇÖ÷ÒªµÄÓŵ㡣
¡¡¡¡ÔÚlinuxÏ£¬¿ª·¢¹¤¾ß±»Çиî³ÉÒ»¸ö¸ö¶ÀÁ¢µÄС¹¤¾ß¡£¸÷×Ô´¦Àí²»Í¬µÄÎÊÌâ¡£ÀýÈ磬±à¼Æ÷£¨emacs, vim)ÓÃÀ´½øÐб༳ÌÐòµÄ£¬µ÷ÊÔÆ÷£¨gdb)ÓÃÀ´µ÷ÊÔ³ÌÐò£¬±àÒëÆ÷£¨GCC£©ÓÃÀ´±àÒëºÍÁ´½Ó³ÌÐòµÄ£¬ÐÔÄÜ·ÖÎö¹¤¾ß£¨gcov, gprof)ÓÃÀ´ÓÅ»¯³ÌÐòµÄ£¬ÎĵµÉú³ÉÆ ......
LinuxÏÂC++¿ª·¢¹¤¾ß½éÉÜ
¡¡¡¡¸ÅÊö
¡¡¡¡¾ÍC£«£«¿ª·¢¹¤¾ß¶øÑÔ£¬ÓëWindowsÏÂ΢Èí£¨VC£¬ VS2005µÈ£©Ò»Í³ÌìÏÂÏà±È£¬Linux/UnixÏÂC£«£«¿ª·¢£¬¿ÉνÎ廨°ËÃÅ£¬¸÷ʽ¸÷Ñù¡£Emacs, vi, eclipse, anjuta£¬kdevelopµÈ²ã³ö²»Çî¡£
¡¡¡¡WindowsÏ£¬¿ª·¢¹¤¾ß¶àÒÔ¼¯³É¿ª·¢»·¾³IDEµÄÐÎʽչÏÖ¸ø×îÖÕÓû§¡£ÀýÈ磬VS2005¼¯³ÉÁ˱à¼Æ÷£¬ºê»ã±àml£¬C /C++±àÒëÆ÷cl£¬×ÊÔ´±àÒëÆ÷rc£¬µ÷ÊÔÆ÷£¬ÎĵµÉú³É¹¤¾ß, nmake¡£ËüÃÇÒÔ¼¯³É·½Ê½Ìṩ¸ø×îÖÕÓû§£¬¶ÔÓÚ³õѧÕ߶øÑÔÊ®·Ö·½±ã¡£µ«ÊÇ£¬ÕâÖÖÉÌҵģʽ£¬Ö±½Óµ¼ÖÂÓû§¿É¶¨ÖÆÐԲ²»ÀûÓÚ×Ô¶¯»¯£¬¼¯³ÉµÚÈý·½¹¤¾ßµÄÄÜÁ¦Èõ¡£ÀýÈ磬ÎÞ·¨¶¨ÖÆһЩºêÀ´´¦ÀíһЩÖظ´²Ù×÷£»Ìå»á²»µ½×Ô¶¯»¯makefileÒ»²½µ½Î»¿ì¸Ð£»ÎÞ·¨Ô¶³ÌµÇ¼µ½·þÎñÆ÷ÉϽøÐпª·¢£»ÎÞ·¨Ê¹ÓÃijÖÖ”Õ³ºÏ¼Á”À´°ÑµÚÈý·½¹¤¾ß£¨ÀýÈ磬Îı¾¹¤¾ß£¬×Ö·û´®¹¤¾ß£©ÓÐЧµØµ÷ÓÃÆðÀ´¡£¿ÉÒÔ˵£¬Á¼ºÃµÄÉÌÒµÖ§³ÖºÍɵ¹Ïʽ¿ª·¢£¬ÊÇËüÃÇÖ÷ÒªµÄÓŵ㡣
¡¡¡¡ÔÚlinuxÏ£¬¿ª·¢¹¤¾ß±»Çиî³ÉÒ»¸ö¸ö¶ÀÁ¢µÄС¹¤¾ß¡£¸÷×Ô´¦Àí²»Í¬µÄÎÊÌâ¡£ÀýÈ磬±à¼Æ÷£¨emacs, vim)ÓÃÀ´½øÐб༳ÌÐòµÄ£¬µ÷ÊÔÆ÷£¨gdb)ÓÃÀ´µ÷ÊÔ³ÌÐò£¬±àÒëÆ÷£¨GCC£©ÓÃÀ´±àÒëºÍÁ´½Ó³ÌÐòµÄ£¬ÐÔÄÜ·ÖÎö¹¤¾ß£¨gcov, gprof)ÓÃÀ´ÓÅ»¯³ÌÐòµÄ£¬ÎĵµÉú³ÉÆ ......
LinuxÏÂC++¿ª·¢¹¤¾ß½éÉÜ
¡¡¡¡¸ÅÊö
¡¡¡¡¾ÍC£«£«¿ª·¢¹¤¾ß¶øÑÔ£¬ÓëWindowsÏÂ΢Èí£¨VC£¬ VS2005µÈ£©Ò»Í³ÌìÏÂÏà±È£¬Linux/UnixÏÂC£«£«¿ª·¢£¬¿ÉνÎ廨°ËÃÅ£¬¸÷ʽ¸÷Ñù¡£Emacs, vi, eclipse, anjuta£¬kdevelopµÈ²ã³ö²»Çî¡£
¡¡¡¡WindowsÏ£¬¿ª·¢¹¤¾ß¶àÒÔ¼¯³É¿ª·¢»·¾³IDEµÄÐÎʽչÏÖ¸ø×îÖÕÓû§¡£ÀýÈ磬VS2005¼¯³ÉÁ˱à¼Æ÷£¬ºê»ã±àml£¬C /C++±àÒëÆ÷cl£¬×ÊÔ´±àÒëÆ÷rc£¬µ÷ÊÔÆ÷£¬ÎĵµÉú³É¹¤¾ß, nmake¡£ËüÃÇÒÔ¼¯³É·½Ê½Ìṩ¸ø×îÖÕÓû§£¬¶ÔÓÚ³õѧÕ߶øÑÔÊ®·Ö·½±ã¡£µ«ÊÇ£¬ÕâÖÖÉÌҵģʽ£¬Ö±½Óµ¼ÖÂÓû§¿É¶¨ÖÆÐԲ²»ÀûÓÚ×Ô¶¯»¯£¬¼¯³ÉµÚÈý·½¹¤¾ßµÄÄÜÁ¦Èõ¡£ÀýÈ磬ÎÞ·¨¶¨ÖÆһЩºêÀ´´¦ÀíһЩÖظ´²Ù×÷£»Ìå»á²»µ½×Ô¶¯»¯makefileÒ»²½µ½Î»¿ì¸Ð£»ÎÞ·¨Ô¶³ÌµÇ¼µ½·þÎñÆ÷ÉϽøÐпª·¢£»ÎÞ·¨Ê¹ÓÃijÖÖ”Õ³ºÏ¼Á”À´°ÑµÚÈý·½¹¤¾ß£¨ÀýÈ磬Îı¾¹¤¾ß£¬×Ö·û´®¹¤¾ß£©ÓÐЧµØµ÷ÓÃÆðÀ´¡£¿ÉÒÔ˵£¬Á¼ºÃµÄÉÌÒµÖ§³ÖºÍɵ¹Ïʽ¿ª·¢£¬ÊÇËüÃÇÖ÷ÒªµÄÓŵ㡣
¡¡¡¡ÔÚlinuxÏ£¬¿ª·¢¹¤¾ß±»Çиî³ÉÒ»¸ö¸ö¶ÀÁ¢µÄС¹¤¾ß¡£¸÷×Ô´¦Àí²»Í¬µÄÎÊÌâ¡£ÀýÈ磬±à¼Æ÷£¨emacs, vim)ÓÃÀ´½øÐб༳ÌÐòµÄ£¬µ÷ÊÔÆ÷£¨gdb)ÓÃÀ´µ÷ÊÔ³ÌÐò£¬±àÒëÆ÷£¨GCC£©ÓÃÀ´±àÒëºÍÁ´½Ó³ÌÐòµÄ£¬ÐÔÄÜ·ÖÎö¹¤¾ß£¨gcov, gprof)ÓÃÀ´ÓÅ»¯³ÌÐòµÄ£¬ÎĵµÉú³ÉÆ ......
ÎÒÓõÄLinuxϵͳÊÇUbuntu 10.04
Ê×ÏÈ, °²×°wxWidgets 2.8. Ä¿Ç°wxWidgetsÓÐÁ½¸öÎȶ¨°æ±¾, 2.6ºÍ2.8, ÎÒÃÇÑ¡×îеÄ. ´ò¿ª “Ubuntu
Èí¼þÖÐÐÄ”, ÔÚËÑË÷¿òÀïÊäÈë “wxWidgets”, °ÑÏÂÃ漸¸öÃû×ÖÒÔ”wxWidgets Cross-platform C++ GUI
toolkit”¿ªÍ·µÄÈ«²¿°²×°. ×°Íêºó, ´ò¿ªÒ»¸öÖÕ¶Ë, ÊäÈëÃüÁî”wx-config –version”, Èç¹ûÒ»ÇÐ˳ÀûµÄ»°,
Äã»á¿´µ½Ò»¸öwxWidgetsµÄ°æ±¾ºÃ, ÎҵĻú×ÓÊÇ “2.8.10″. Èç¹û²»ÄÜÏÔʾ, ÄÇô¾ÍÒª¼ìÌÖÒ»ÏÂÇ°ÃæµÄ¹ý³ÌÁË.
¸Õ¸ÕÌáµ½µÄwx-config, ÊÇwxWidgetÌṩµÄºÜÓÐÓø¨Öú¹¤¾ß. (²»¹ýòËÆÔÚWindowsƽ̨ÉÏûÓÐ) Ö®ºóÎÒÃÇ»¹»áÓõ½.
Ò», ±àÂë:
ÓÃÈκÎÄãϲ»¶µÄÎı¾±à¼Æ÷н¨Ò»¸öÎı¾Îļþ.(±ÈÈçgedit/vim) °ÑÇ°ÃæһƪÖеĴúÂ븴ÖƵ½ÕâÀï, ±£´æÎļþΪ”hworld.cpp”
(ÎļþÃû¿ÉÒÔÈÎÒâ, ×Ô¼ºÖªµÀ¾ÍºÃ)
¶þ, ±àÒë
´ò¿ªÒ»¸öÃüÁîÖÕ¶Ë, À´µ½hworld.cppµÄĿ¼, ÊäÈëÒ»ÌõÃüÁî¼´¿É±àÒë´ËÎļþ
`wx-config --cxx --cxxflags --libs` -ohworld hworld.cpp
ÐèҪעÒâµÄÊÇÕâÀïÁ½¸ö¿´ËƵ¥ÒýºÅµÄ¶«Î÷Æäʵ²»Êǵ¥ÒýºÅ, ÊǼüÅÌÉÏÊý×Ö1Ç°ÃæµÄÄǸö·ûºÅ, ÕâÊÇLinux ShellÀï³£¼ûµÄͨµÀÓ÷¨,
Ò²¾ÍÊ ......
ÎÒÓõÄLinuxϵͳÊÇUbuntu 10.04
Ê×ÏÈ, °²×°wxWidgets 2.8. Ä¿Ç°wxWidgetsÓÐÁ½¸öÎȶ¨°æ±¾, 2.6ºÍ2.8, ÎÒÃÇÑ¡×îеÄ. ´ò¿ª “Ubuntu
Èí¼þÖÐÐÄ”, ÔÚËÑË÷¿òÀïÊäÈë “wxWidgets”, °ÑÏÂÃ漸¸öÃû×ÖÒÔ”wxWidgets Cross-platform C++ GUI
toolkit”¿ªÍ·µÄÈ«²¿°²×°. ×°Íêºó, ´ò¿ªÒ»¸öÖÕ¶Ë, ÊäÈëÃüÁî”wx-config –version”, Èç¹ûÒ»ÇÐ˳ÀûµÄ»°,
Äã»á¿´µ½Ò»¸öwxWidgetsµÄ°æ±¾ºÃ, ÎҵĻú×ÓÊÇ “2.8.10″. Èç¹û²»ÄÜÏÔʾ, ÄÇô¾ÍÒª¼ìÌÖÒ»ÏÂÇ°ÃæµÄ¹ý³ÌÁË.
¸Õ¸ÕÌáµ½µÄwx-config, ÊÇwxWidgetÌṩµÄºÜÓÐÓø¨Öú¹¤¾ß. (²»¹ýòËÆÔÚWindowsƽ̨ÉÏûÓÐ) Ö®ºóÎÒÃÇ»¹»áÓõ½.
Ò», ±àÂë:
ÓÃÈκÎÄãϲ»¶µÄÎı¾±à¼Æ÷н¨Ò»¸öÎı¾Îļþ.(±ÈÈçgedit/vim) °ÑÇ°ÃæһƪÖеĴúÂ븴ÖƵ½ÕâÀï, ±£´æÎļþΪ”hworld.cpp”
(ÎļþÃû¿ÉÒÔÈÎÒâ, ×Ô¼ºÖªµÀ¾ÍºÃ)
¶þ, ±àÒë
´ò¿ªÒ»¸öÃüÁîÖÕ¶Ë, À´µ½hworld.cppµÄĿ¼, ÊäÈëÒ»ÌõÃüÁî¼´¿É±àÒë´ËÎļþ
`wx-config --cxx --cxxflags --libs` -ohworld hworld.cpp
ÐèҪעÒâµÄÊÇÕâÀïÁ½¸ö¿´ËƵ¥ÒýºÅµÄ¶«Î÷Æäʵ²»Êǵ¥ÒýºÅ, ÊǼüÅÌÉÏÊý×Ö1Ç°ÃæµÄÄǸö·ûºÅ, ÕâÊÇLinux ShellÀï³£¼ûµÄͨµÀÓ÷¨,
Ò²¾ÍÊ ......
1£ºSQL ServerÊý¾Ý¿âÅäÖÃ
¿ªÆô·þÎñÆ÷
ÍÐÅÌÏÔʾ·þÎñÆ÷Æô¶¯
2:ÔÚStaAfx.h ÖÐÌí¼ÓÈçÏ´úÂë
#import "C:\\Program Files\\Common Files\\System\\ado\\msado15.dll" no_namespace rename("EOF","adoEOF")rename("BOF","adoBOF")
//³öÏÖmsado15.dll ±íʾµ¼Èë³É¹¦
3:ÔÚBOOL CXXXApp::InitInstance()Öгõʼ»¯COM»·¾³
BOOL CXXXApp::InitInstance()
{
AfxEnableControlContainer();
::CoInitialize(NULL);
…….
ÊÍ·ÅCOM»·¾³
::CoUninitialize();
return FALSE;
}
4£ºËµÃ÷
ÀûÓÃϵͳĬÈ϶¨ÒåÈ«¾ÖCXXXAppÀàµÄ¶ÔÏótheApp¿ÉÒÔµ÷ÓÃÀà·½·¨£¨º¯Êý£©µÄÄÜÁ¦£¬
¹ÊÔÚCXXXAppÀàÖмÓÈëÁ¬½ÓÊý¾Ý¿âµÄ¹«¹²·½·¨—InitADOConn£¨£©ºÍ¹«¹²Êý¾Ý—
&nb ......
1£ºSQL ServerÊý¾Ý¿âÅäÖÃ
¿ªÆô·þÎñÆ÷
ÍÐÅÌÏÔʾ·þÎñÆ÷Æô¶¯
2:ÔÚStaAfx.h ÖÐÌí¼ÓÈçÏ´úÂë
#import "C:\\Program Files\\Common Files\\System\\ado\\msado15.dll" no_namespace rename("EOF","adoEOF")rename("BOF","adoBOF")
//³öÏÖmsado15.dll ±íʾµ¼Èë³É¹¦
3:ÔÚBOOL CXXXApp::InitInstance()Öгõʼ»¯COM»·¾³
BOOL CXXXApp::InitInstance()
{
AfxEnableControlContainer();
::CoInitialize(NULL);
…….
ÊÍ·ÅCOM»·¾³
::CoUninitialize();
return FALSE;
}
4£ºËµÃ÷
ÀûÓÃϵͳĬÈ϶¨ÒåÈ«¾ÖCXXXAppÀàµÄ¶ÔÏótheApp¿ÉÒÔµ÷ÓÃÀà·½·¨£¨º¯Êý£©µÄÄÜÁ¦£¬
¹ÊÔÚCXXXAppÀàÖмÓÈëÁ¬½ÓÊý¾Ý¿âµÄ¹«¹²·½·¨—InitADOConn£¨£©ºÍ¹«¹²Êý¾Ý—
&nb ......
1:ÔÚStaAfx.h ÖÐÌí¼ÓÈçÏ´úÂë #import "C:\\Program Files\\Common Files \\System\\ado\\msado15.dll" no_namespace rename("EOF","adoEOF")rename("BOF","adoBOF")
2:ÔÚBOOL CXXXApp::InitInstance()Öгõʼ»¯COM»·¾³
::CoInitialize(NULL);
ÊÍ·ÅCOM»·¾³
::CoUninitialize();
3£ºÔÚCXXXAppÍ·ÎļþÖж¨ÒåÁ½¸öÖÇÄÜÖ¸Õëpublic
Ö¸ÏòRecordset¶ÔÏóµÄÖ¸Õë
_RecordsetPtr m_pRecordset;
Ö¸ÏòConnection¶ÔÏóµÄÖ¸Õë
_ConnectionPtr m_pConnection;
4:ÔÚvoid CXXXApp::OnInitADOConn()
{
//ÓÃÓÚÈ«¾Ö±äÁ¿µ÷ÓÃÁ¬½ÓÊý¾Ý¿â
try
{
//´´½¨Á¬½Ó¶ÔÏóʵÀý
m_pConnection.CreateInstance("ADODB.Connection");
//ÉèÖÃÁ¬½Ó×Ö·û´®
CString strConnect="DRIVER={Microsoft Access Driver/ & ......
1:ÔÚStaAfx.h ÖÐÌí¼ÓÈçÏ´úÂë #import "C:\\Program Files\\Common Files \\System\\ado\\msado15.dll" no_namespace rename("EOF","adoEOF")rename("BOF","adoBOF")
2:ÔÚBOOL CXXXApp::InitInstance()Öгõʼ»¯COM»·¾³
::CoInitialize(NULL);
ÊÍ·ÅCOM»·¾³
::CoUninitialize();
3£ºÔÚCXXXAppÍ·ÎļþÖж¨ÒåÁ½¸öÖÇÄÜÖ¸Õëpublic
Ö¸ÏòRecordset¶ÔÏóµÄÖ¸Õë
_RecordsetPtr m_pRecordset;
Ö¸ÏòConnection¶ÔÏóµÄÖ¸Õë
_ConnectionPtr m_pConnection;
4:ÔÚvoid CXXXApp::OnInitADOConn()
{
//ÓÃÓÚÈ«¾Ö±äÁ¿µ÷ÓÃÁ¬½ÓÊý¾Ý¿â
try
{
//´´½¨Á¬½Ó¶ÔÏóʵÀý
m_pConnection.CreateInstance("ADODB.Connection");
//ÉèÖÃÁ¬½Ó×Ö·û´®
CString strConnect="DRIVER={Microsoft Access Driver/ & ......
C/C++ Reference
http://www.cppreference.com/
C++ Library Reference
http://www.cplusplus.com/ref/
Standard C++ Library Class Reference at Rogue Wave
http://www.roguewave.com/support/docs/hppdocs/stdref/
Dinkum C++ Library Reference Manual.
http://www.dinkumware.com/refxcpp.html
------------------------------------------------------------------
More About STL:
http://www.cs.rpi.edu/~musser/stl-book/ Effective STL
http://www.bdsoft.com/resources/estlcode.html Effective STL -Example S
ource Code
http://www.bdsoft.com/resources.html
http://www.bdsoft.com/tools/stlfilt.html STLFilt( free) An STL Error M
essage Decryptor for C++
http://www.oonumerics.org/blitz/download/ Bitz library
http://www.cs.auc.dk/%7E ......
C/C++ Reference
http://www.cppreference.com/
C++ Library Reference
http://www.cplusplus.com/ref/
Standard C++ Library Class Reference at Rogue Wave
http://www.roguewave.com/support/docs/hppdocs/stdref/
Dinkum C++ Library Reference Manual.
http://www.dinkumware.com/refxcpp.html
------------------------------------------------------------------
More About STL:
http://www.cs.rpi.edu/~musser/stl-book/ Effective STL
http://www.bdsoft.com/resources/estlcode.html Effective STL -Example S
ource Code
http://www.bdsoft.com/resources.html
http://www.bdsoft.com/tools/stlfilt.html STLFilt( free) An STL Error M
essage Decryptor for C++
http://www.oonumerics.org/blitz/download/ Bitz library
http://www.cs.auc.dk/%7E ......