Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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++void¼°voidÖ¸ÕëÀàÐÍ

c/c++void¼°voidÖ¸ÕëÀàÐÍ
¡¡¡¡1.¸ÅÊöÐí¶à³õѧÕ߶ÔC/C++ÓïÑÔÖеÄvoid¼°voidÖ¸ÕëÀàÐͲ»ÉõÀí½â£¬Òò´ËÔÚʹÓÃÉϳöÏÖÁËһЩ´íÎó¡£±¾ÎĽ«¶Ôvoid¹Ø¼ü×ÖµÄÉî¿Ìº¬Òå½øÐнâ˵£¬²¢ÏêÊövoid¼°voidÖ¸ÕëÀàÐ͵ÄʹÓ÷½·¨Óë¼¼ÇÉ¡£
¡¡¡¡2.voidµÄº¬ÒåvoidµÄ×ÖÃæÒâ˼ÊÇ“ÎÞÀàÐÍ”£¬void *ÔòΪ“ÎÞÀàÐÍÖ¸Õ딣¬void *¿ÉÒÔÖ¸ ......

¹«ÀúתũÀúC³ÌÐò

×¢ÒâÖ»Äܵ½2049Ä꣡
 
#define uchar unsigned char
#define uint unsigned int
#include <intrins.h>
/*
¹«ÀúÄê¶ÔÓ¦µÄÅ©ÀúÊý¾Ý,ÿÄêÈý×Ö½Ú,
¸ñʽµÚÒ»×Ö½ÚBIT7-4 λ±íʾÈòÔÂÔ·Ý,ֵΪ0 ΪÎÞÈòÔÂ,BIT3-0 ¶ÔӦũÀúµÚ1-4 ÔµĴóС
µÚ¶þ×Ö½ÚBIT7-0 ¶ÔӦũÀúµÚ5-12 Ô´óС,µÚÈý×Ö½ÚBIT7 ±íʾũÀúµÚ13 ¸öÔ´óÐ ......

¡¶C³ÌÐòÉè¼ÆµÚÈý°æ¡·¿Îºó×÷Òµ¡¾µÚÒ»Õ¡¿

1.1Çë¸ù¾Ý×Ô¼ºµÄÈÏʶ£¬Ð´³öCÓïÑÔµÄÖ÷ÒªÌص㡣
1.2CÓïÑÔµÄÖ÷ÒªÓÃ;ÊÇʲô£¿ËüºÍÆäËû¸ß¼¶ÓïÑÔÓÐʲôÒìͬ£¿
1.3д³öÒ»¸öC³ÌÐòµÄ¹¹³É¡£
1.4CÓïÑÔÒÔº¯ÊýΪ³ÌÐòµÄ»ù±¾µ¥Î»£¬ÓÐʲôºÃ´¦£¿
1.5Çë²ÎÕÕ±¾ÕÂÀýÌ⣬±àдһ¸öC³ÌÐò£¬Êä³öÒ»ÏÂÐÅÏ¢£º
×××××××××××& ......

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

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

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

C++µÄʵÏÖ
#include<fstream>  
#include <iostream>
using namespace std;
int main()
{  
 ofstream logTest("foo.log");    
 streambuf *oldbuf = cout.rdbuf(logTest.rdbuf());   
  
 cout << "Êä³ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ