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

VC2005ÖÐCÔËÐÐʱ¿âÑ¡Ôñ²»µ±µ¼ÖµÄÁ´½ÓÎÊÌâ¼°½â¾ö·½°¸

VC2005ÖÐCÔËÐÐʱ¿âÑ¡Ôñ²»µ±µ¼ÖµÄÁ´½ÓÎÊÌâ¼°½â¾ö·½°¸
 
ÔÚMicrosoft Visual C++ 2005ÖУ¬Èç¹ûÒ»¸öEXEÖ÷¹¤³ÌÓ¦ÓóÌÐòҪʹÓÃÒ»¸ö»ò¼¸¸ö¾²Ì¬LIB¿â£¬ÄÇôÁ´½Óʱ¾­³£»áÓöµ½·ûºÅÖظ´¶¨ÒåµÄ´íÎó£¬Èç¹ûÅųý¿â²»µ±ÓÖ»áÓöµ½ÕÒ²»µ½Ä³Ð©·ûºÅµÄÎÊÌ⣬Èç¹ûÇ¿ÖÆʹÓà /forceÑ¡ÏîÁ´½Ó¹ýÈ¥ÓÖ¿ÉÄÜ·¢ÉúһЩÒâÏë²»µ½µÄÔËÐÐʱÎÊÌâ¡£
 
ÈçºÎÍêÃÀ½â¾öÕâ¸öÎÊÌâÄØ£¿Ö»ÐèÒª°´ÕÕÈçϲ½Öè½øÐм´¿É£º
1¡¢È·±£ËùÓÐLIB¹¤³ÌÓëEXEÖ÷¹¤³ÌµÄ»î¶¯ÅäÖõÄÈçÏÂÅäÖÃÏîÍêÈ«Ò»Ö£º
ü         ÅäÖÃÊôÐÔ->³£¹æ->ÏîĿĬÈÏÖµ->MFCµÄʹÓÃ
ü         ÅäÖÃÊôÐÔ->³£¹æ->ÏîĿĬÈÏÖµ->×Ö·û¼¯
ü         ÅäÖÃÊôÐÔ->C/C++->´úÂëÉú³É->ÔËÐÐʱ¿â
 
2¡¢ÔÚÖ÷¹¤³ÌÖиù¾Ý²»Í¬µÄÔËÐÐʱ¿âºöÂÔ²»Í¬µÄĬÈϿ⣺
ÈôҪʹÓôËÔËÐÐʱ¿â
ÇëºöÂÔÕâЩ¿â
µ¥Ïß³Ì (libc.lib)
libcmt.lib¡¢msvcrt.lib¡¢libcd.lib¡¢libcmtd.lib¡¢msvcrtd.lib
¶àÏß³Ì (libcmt.lib)
libc.lib¡¢msvcrt.lib¡¢libcd.lib¡¢libcmtd.lib¡¢msvcrtd.lib
ʹÓà DLL µÄ¶àÏß³Ì (msvcrt.lib)
libc.lib¡¢libcmt.lib¡¢libcd.lib¡¢libcmtd.lib¡¢msvcrtd.lib
µ÷ÊÔµ¥Ïß³Ì (libcd.lib)
libc.lib¡¢libcmt.lib¡¢msvcrt.lib¡¢libcmtd.lib¡¢msvcrtd.lib
µ÷ÊÔ¶àÏß³Ì (libcmtd.lib)
libc.lib¡¢libcmt.lib¡¢msvcrt.lib¡¢libcd.lib¡¢msvcrtd.lib
ʹÓà DLL µÄµ÷ÊÔ¶àÏß³Ì (msvcrtd.lib)
libc.lib¡¢libcmt.lib¡¢msvcrt.lib¡¢libcd.lib¡¢libcmtd.lib
ºöÂÔĬÈÏ¿âµÄ·½·¨ÊÇÔÚÈçÏÂλÖÃÌîдҪºöÂԵĿ⣺
ÅäÖÃÊôÐÔ->Á´½ÓÆ÷->ÊäÈë->ºöÂÔÌض¨¿â
ÌõÄ¿Ö®¼äÒԷֺŸô¿ª¡£
 
¾­¹ýÉÏÃæÁ½²½£¬´ËÀàÎÊÌâ»ù±¾¿ÉÒÔ½â¾ö¡£


Ïà¹ØÎĵµ£º

¹¹½¨×Ô¼ºµÄC/C++²å¼þ¿ª·¢¿ò¼Ü

——³õ²½ÉèÏë
¡¡×î½üÒ»Ö±ÔÚѧϰOSGI·½ÃæµÄ֪ʶ¡£ÂòÁËÒ»±¾¡¶OSGIÔ­ÀíºÍ×î¼Ñʵ¼ù¡·£¬¿ÉÊÇ»¹Ã»Óе½¡£Òź¶µÄÊÇ£¬OSGIÄ¿Ç°µÄ¼¸¸ö¿ªÔ´¿ò¼ÜÖ»Ö§³ÖJava£¬¶ÔCºÍC++¶¼²»Ö§³ÖµÄ¡£¿ÉϧÎÒÃǹ«Ë¾Ä¿Ç°Ö÷ÒªµÄ¿ª·¢ÓïÑÔ»¹ÊÇcºÍc++£¬¼´±ãÊÇÒý½øOSGI£¬ËùµÃµÄºÃ´¦·¶Î§ÓÐÏÞ¡£¶øÎÒ¶ÔËÉÉ¢ñîºÏµÄÄ£¿é»¯¿ª·¢ÏòÍùÒѾᣲéÁËÒ»ÏÂOSGI¶ÔC++Ö§ ......

ʹÓô¿CÔÚ×Ô¼ºµÄ´°¿ÚÖÐǶÈëHTML¿Ø¼þ

±ê Ìâ: ¡¾·­Òë¡¿¹ýÄêÁË£¬Ï×ÉÏСÀñ - ʹÓô¿CÔÚ×Ô¼ºµÄ´°¿ÚÖÐǶÈëHTML¿Ø¼þ
×÷ Õß: xiep
ʱ ¼ä: 2010-01-22,13:42:29
Á´ ½Ó: http://bbs.pediy.com/showthread.php?t=105702
Ç°¶Îʱ¼äÒòΪÏîÄ¿ÐèÒª£¬ËùÒÔ·­ÒëÁËÕâƪ£¬Ï£Íû¶ÔijЩÈËÓÐÓá£ÓÉÓÚʱ¼ä²Ö´Ù£¬´íÎóÖ®´¦ÔÚËùÄÑÃ⣬Çë²»ÁßÖ¸³ö¡£
Áí£ºbrowser libΪÎÒ¸ÄдµÄÒ»¸ö¾ ......

ÔÚCºÍC£«£«Öаѱê×¼Êä³öÖض¨Ïòµ½Ö¸¶¨Îļþ

C++µÄʵÏÖ
#include<fstream>  
#include <iostream>
using namespace std;
int main()
{  
 ofstream logTest("foo.log");    
 streambuf *oldbuf = cout.rdbuf(logTest.rdbuf());   
  
 cout << "Êä³ö ......

ÓÃC socket http·¢ËÍÕâ¶ÎÇëÇó±¨ÎÄ

HTTP·ÖΪÇëÇóÐУ¬ÇëÇóÍ·²¿ÒÔ¼°ÇëÇóÄÚÈÝ
ÄǸö³¤¶ÈÊý×ÖÖµ¾ÍÊÇÇëÇóÄÚÈݵij¤¶È£¨×Ö½ÚΪµ¥Î»£©
¸øÒ»¶ÎÀý×ÓÄã¾Í»ù±¾Ã÷°×ÁË:
onst CString getString(int i)
{
    CString s;
    s.Format(_T("%d"), i);
    return s;
}
////////////////////////////////
CS ......

×Ô¼º¶¯ÊÖдһ¸öÅжÏÍøÖ·ºÏ·¨µÄC\C++µÄÕýÔò±í´ïʽ³ÌÐò

#include<stdio.h>
#include<regex.h>
int main(int argc, char** argv)
{
if(IsLegalPage("http://www.baidu.com"))
printf("¸ÃÍøÒ³ºÏ·¨\n");
else printf("¸ÃÍøÒ³²»ºÏ·¨£¡£¡£¡\n");
return 0;
}
/* º¯Êý˵Ã÷£ºÅжÏÍøÒ³ÊÇ·ñºÏ·¨
* ÊäÈë²ÎÊý£ºÐèÒªÅжϵÄÍø ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ