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

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

±ê Ìâ: ¡¾·­Òë¡¿¹ýÄêÁË£¬Ï×ÉÏСÀñ - ʹÓô¿CÔÚ×Ô¼ºµÄ´°¿ÚÖÐǶÈëHTML¿Ø¼þ
×÷ Õß: xiep
ʱ ¼ä: 2010-01-22,13:42:29
Á´ ½Ó: http://bbs.pediy.com/showthread.php?t=105702
Ç°¶Îʱ¼äÒòΪÏîÄ¿ÐèÒª£¬ËùÒÔ·­ÒëÁËÕâƪ£¬Ï£Íû¶ÔijЩÈËÓÐÓá£ÓÉÓÚʱ¼ä²Ö´Ù£¬´íÎóÖ®´¦ÔÚËùÄÑÃ⣬Çë²»ÁßÖ¸³ö¡£
Áí£ºbrowser libΪÎÒ¸ÄдµÄÒ»¸ö¾²Ì¬¿â£¬testΪ²âÊÔ³ÌÐò¡£
ʹÓô¿CÔÚ×Ô¼ºµÄ´°¿ÚÖÐǶÈëHTML¿Ø¼þ
Ô­ÎÄÁ´½Ó£ºhttp://www.codeproject.com/KB/COM/cwebpage.aspx
·­Ò룺xiep
¼ò½é
±ØÐë±»´´½¨µÄCOM¶ÔÏó
¿ÉÒÔÑ¡Ôñ´´½¨µÄCOM¶ÔÏó
»ñÈ¡ä¯ÀÀÆ÷¶ÔÏó
ÏÔʾһ¸öÍøÒ³
ÏÔʾһ¸öHTML¸ñʽµÄ»º³åÇø
ÏÔʾһ¸öCHMÒ³Ãæ
µ÷Õûä¯ÀÀÆ÷µÄÏÔʾÇøÓò
ºóÍË£¬·µ»Ø£¬ºÍÆäËû¶¯×÷
ÊÍ·Åä¯ÀÀÆ÷¶ÔÏó
cwebpage.dll
ʼþ
  
 
¼ò½é
½«Internet Explorerµ±×÷OLE/COM¶ÔÏóÖÐǶÈë×Ô¼ºµÄ´°¿ÚµÄÀý×Ӻܶࡣµ«ÕâЩÀý×Óͨ³£Ê¹ÓÃMFC£¬.NET£¬C#£¬ÖÁÉÙʹÓÃÁËWindowsÄ£°å¿â£¨WTL£©£¬ÒòΪÕâЩ¿ò¼Ü¶¼±»ÒѾ­½«Internet ExplorerÔ¤ÏÈ°üװΪһ¸öÒ×ÓõÄHTML¿Ø¼þ¡£Èç¹ûÄãÏëʹÓô¿C£¬¶ø²»ÊÇMFC£¬WTL£¬.NET£¬C#£¬ÉõÖÁÊǸù±¾²»Ê¹ÓÃÈκÎC++´úÂ룬ÄÇôÏñʹÓÃIEµÄIWebBrowser2¿Ø¼þµÄÀý×ӾͺÜÉÙÁË¡£±¾ÎľÍÊǹØÓÚʹÓô¿CÔÚ×Ô¼ºµÄ´°¿ÚÖÐǶÈëIEä¯ÀÀÆ÷µÄÏêϸÃèÊö£¬²¢ÇÒ¸½´ø¿ÉÒÔÔËÐеÄÀý×Ó¡£
ÊÂʵÉÏ£¬ÎÒÒѾ­Ê¹ÓÃC´úÂ뽫IWebBrowser2°ü×°³ÉÒ»¸ö¶¯Ì¬Á´½Ó¿â£¬Òò´ËÄã¿ÉÒÔÔÚÄãËù´´½¨µÄ´°¿ÚÖмòµ¥µÄµ÷ÓÃÆäÖеÄij¸öº¯ÊýÏÔʾһ¸öÍøÒ³»òÕßHTMLÎı¾£¬¶ø²»ÐèÒªÁ˽â¹ØÓÚCOMµÄÈκÎÄÚÈÝ£¬³ý·ÇÄãÏëÐ޸ĸö¯Ì¬Á´½Ó¿âµÄÔ´Âë¡£
ÔÚ¼ÌÐøÔĶÁ±¾ÎÄ֮ǰ£¬ÄãÓ¦µ±ÔĶÁÎÒ¹ØÓÚ¡¶´¿CÖеÄCOM¡·ÏµÁÐÎÄÕ¡£ÆäÖеÚÒ»²¿·ÖÊÇʹÓÃCOM¶ÔÏóµÄ»ù´¡ÖªÊ¶£»µÚËIJ¿·ÖÊǹØÓÚ´¦Àíº¬Óжà½Ó¿ÚµÄCOM¶ÔÏóµÄ£»µÚ¶þ²¿·Ö¹ØÓÚ×Ô¶¯Êý¾ÝÀàÐ͵ÄʹÓã»ÒÔ¼°µÚÎ岿·Ö¹ØÓÚ´¦Àíʼþ£¨»Øµ÷º¯Êý£©µÄÄÚÈÝ¡£
±ØÐë±»´´½¨µÄCOM¶ÔÏó
Ö»ÒªÔĶÁÁËÒÔÉÏÌáµ½µÄÎÄÕ£¬Äã¾ÍÒѾ­¾ß±¸ÁËÔÚ´¿CÖбàдCOM¶ÔÏóµÄ»ù´¡ÖªÊ¶¡£ÏÂÃæÎÒÃÇ¿´¿´Ê¹ÓÃä¯ÀÀÆ÷¶ÔÏó¶¼ÐèÒª×öЩʲô¡£Äã¿ÉÒԱ߶Á±¾Îı߲鿴Simple.c£¨ÔÚSimpleĿ¼£©¡£
Ê×ÏÈä¯ÀÀÆ÷¶ÔÏóÏ£ÍûÎÒÃÇÌṩÖÁÉÙ3¸öCOM¶ÔÏ󣬼´Ò»¸öIOleInPlaceFrame¶ÔÏó£¬Ò»¸öIOleClientSite¶ÔÏó£¬ÒÔ¼°Ò»¸öIOleInPlaceSite¶ÔÏó¡£ÕâЩ¶ÔÏóÒÔ¼°ËüÃǵÄÐ麯Êý±íºÍGUID¶¼ÒѾ­ÔÚSDKµÄÍ·ÎļþÖỶ¨Òå¡£Òò´ËËüÃǶ¼ÓÐ×Ô¼ºµÄÔ¤¶¨ÒåµÄÐ麯Êý¼¯ºÏ¡£
ÎÒÃÇÀ´¿´¿´IOleClientSite¶ÔÏó°É¡£ËüµÄÐ麯Êý±í±»¶¨ÒåΪIOleClientSiteVtbl½á¹¹¡£IOleClientSiteVtblʵ¼ÊÉÏÊÇÒ»¸ö


Ïà¹ØÎĵµ£º

¿ÎÄÚÍâhtmlС½á

  
u
<BODY></BODY>±ê¼ÇµÄÊÇÍøÒ³µÄÖ÷Ì壺ËüµÄÊôÐÔÓУºtext:Éè¼ÆÒ³ÃæÎÄ×ÖµÄ×ÖÌåÑÕÉ«£» Bgcolor:É趨ҳÃæµÄ±³¾°ÑÕÉ«£»Background:
É趨ҳÃæµÄ±³¾°Í¼Ïñ£» BGPROPERTIES£ºÉ趨ҳÃæµÄͼƬÊÇ·ñËæ×ÅÒ³Ãæ¹ö¶¯¶ø¹ö¶¯£»Link:É趨µÄÁ´½ÓĬÈÏÑÕÉ«£»Alink£ºÉ趨Êó±ê½Ó½üʱµÄÁ´½ÓÑÕÉ«£»Vlink£ºÉ趨ÒѾ­·ÃÎʹýµÄÁ ......

c³ÌÐòµÄÔ¤´¦Àí£¬±àÒ룬Á¬½Ó¹ý³Ì¡£

×Ô¼ºËѼ¯²¢ÇÒÕûÀí£¬ÓÃÓڲο¼¡£
1.ÍêÕûÁ÷³Ì£º
CÔ´³ÌÐòÍ·Îļþ£­£­>Ô¤±àÒë´¦Àí(cpp)£­£­>±àÒë³ÌÐò±¾Éí£­£­>ÓÅ»¯³ÌÐò£­£­>»ã±à³ÌÐò£­£­>Á´½Ó³ÌÐò-->¿ÉÖ´ÐÐÎļþ
 
 
 
pic from http://edmulroy.portbridge.com/oview.htm
 
2. cµÄÔ¤´¦Àí
Ô¤±àÒë³ÌÐòËùÍê³ÉµÄ»ù±¾ÉÏÊǶÔÔ´³ÌÐòµÄ& ......

hexdump s 0 n 52 CʵÀý helloworld

[root@localhost test]# hexdump -s 0 -n 52 -C helloworld
00000000  7f 45 4c 46 01 01 01 00  00 00 00 00 00 00 00 00  |.ELF............|
00000010  02 00 03 00 01 00 00 00  10 83 04 08 34 00 00 00  |............4...|
00000020  30 08 00 00 00 00 00 00  34 00 20 ......

ÓÖÊÇ3Ö»C¡£¡£¡£= =

1.д³öÁ½¸öº¯Êý£¬·Ö±ðÇóÁ½¸öÕûÊýµÄ×î´ó¹«Ô¼ÊýºÍ×îС¹«±¶Êý£¬ÓÃÖ÷º¯Êýµ÷ÓÃÕâÁ½¸öº¯Êý£¬²¢Êä³ö½á¹û¡£Á½¸öÕûÊýÓɼüÅÌÊäÈë¡£
#include<stdio.h>
int gcd(int,int);
int lcm(int,int);
int gcd(int m,int n)
{
if(m%n==0)
return n;
else
return gcd(n,m%n);
}
int lcm(int m,int n)
{
return m*n/(gc ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ