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

Delphi ÖÐDLLµÄµ÷Óü¼ÇÉ

     ÌáÆðDLLÄúÒ»¶¨²»»áÄ°Éú£¬ÔÚWindowsÖÐÓÐ×Å´óÁ¿µÄÒÔDLLΪºó׺µÄÎļþ£¬ËüÃÇÊDZ£Ö¤WindowsÕý³£ÔËÐкÍά»¤Éý¼¶µÄÖØÒª±£Ö¤¡££¨¾Ù¸öÀý×Ó£¬±ÊÕßµÄWin95 SystemĿ¼Ï¾¡ÓÐ500¶à¸öDLLÎļþ¡££©Æäʵ£¬DLLÊÇÒ»ÖÖÌØÊâµÄ¿ÉÖ´ÐÐÎļþ¡£ËµËüÌØÊâÖ÷ÒªÊÇÒòΪһ°ãËü¶¼²»ÄÜÖ±½ÓÔËÐУ¬ÐèÒªËÞÖ÷³ÌÐò±ÈÈç*.EXE³ÌÐò»òÆäËûDLLµÄ¶¯Ì¬µ÷ÓòÅÄܹ»Ê¹Ó᣼òµ¥µÄ˵£¬ÔÚͨ³£Çé¿öÏÂDLLÊǾ­¹ý±àÒëµÄº¯ÊýºÍ¹ý³ÌµÄ¼¯ºÏ¡£
ʹÓÃDLL¼¼ÊõÖ÷ÒªÓÐÒÔϼ¸¸öÔ­Òò£º
Ò»¡¢¼õС¿ÉÖ´ÐÐÎļþ´óС¡£
¡¡¡¡DLL¼¼ÊõµÄ²úÉúÓкܴóÒ»²¿·ÖÔ­ÒòÊÇΪÁ˼õС¿ÉÖ´ÐÐÎļþµÄ´óС¡£µ±²Ù×÷ϵͳ½øÈëWindowsʱ´úºó£¬Æä´óСÒѾ­´ïµ½¼¸Ê®Õ×ÄËÖÁ¼¸°ÙÕס£ÊÔÏëÈç¹û»¹ÊÇʹÓÃDOSʱ´úµÄµ¥Ö´ÐÐÎļþÌåϵµÄ»°Ò»¸ö¿ÉÖ´ÐÐÎļþµÄ´óС¿ÉÄܽ«´ïµ½ÊýÊ®Õ×£¬ÕâÊÇ´ó¼Ò¶¼²»ÄܽÓÊܵġ£½â¾öµÄ·½·¨¾ÍÊDzÉÓö¯Ì¬Á´½Ó¼¼Êõ½«Ò»¸ö´óµÄ¿ÉÖ´ÐÐÎļþ·Ö¸î³ÉÐí¶àСµÄ¿ÉÖ´ÐгÌÐò¡£
¶þ¡¢ÊµÏÖ×ÊÔ´¹²Ïí¡£
¡¡¡¡ÕâÀïÖ¸µÄ×ÊÔ´¹²Ïí°üÀ¨ºÜ¶à·½Ã棬×î¶àµÄÊÇÄÚ´æ¹²Ïí¡¢´úÂë¹²ÏíµÈµÈ¡£ÔçÆڵijÌÐòÔ±¾­³£Åöµ½ÕâÑùµÄÊÂÇ飬ÔÚ²»Í¬µÄ±à³ÌÈÎÎñÖбàдͬÑùµÄ´úÂë¡£ÕâÖÖ·½·¨ÏÔÈ»ÀË·ÑÁ˺ܶàʱ¼ä£¬ÎªÁ˽â¾öÕâ¸öÎÊÌâÈËÃDZàдÁ˸÷ÖÖ¸÷ÑùµÄ¿â¡£µ«ÓÉÓÚ±à³ÌÓïÑԺͻ·¾³µÄ²»Í¬ÕâЩ¿âÒ»°ã¶¼²»ÄÜͨÓ㬶øÇÒÓû§ÔÚÔËÐгÌÐòʱ»¹ÐèÒªÕâЩ¿â²ÅÐУ¬¼«²»·½±ã¡£DLLµÄ³öÏÖ¾ÍÏñÖƶ¨ÁËÒ»¸ö±ê×¼Ò»Ñù£¬Ê¹ÕâЩ¿âÓÐÁËͳһµÄ¹æ·¶¡£ÕâÑùÒ»À´£¬Óò»Í¬±à³ÌÓïÑԵijÌÐòÔ±¿ÉÒÔ·½±ãµÄʹÓÃÓñðµÄ±à³ÌÓïÑÔ±àдµÄDLL¡£ÁíÍ⣬DLL»¹ÓÐÒ»¸öÍ»³öµÄÌصã¾ÍÊÇÔÚÄÚ´æÖÐÖ»×°ÔØÒ»´Î£¬ÕâÒ»µã¿ÉÒÔ½ÚÊ¡ÓÐÏÞµÄÄڴ棬¶øÇÒ¿ÉÒÔͬʱΪ¶à¸ö½ø³Ì·þÎñ¡£
Èý¡¢±ãÓÚά»¤ºÍÉý¼¶¡£
¡¡¡¡Ï¸ÐĵÄÅóÓÑ¿ÉÄÜ·¢ÏÖÓÐһЩDLLÎļþÊÇÓа汾˵Ã÷µÄ¡££¨²é¿´DLLÎļþµÄÊôÐÔ¿ÉÒÔ¿´µ½£¬µ«²»ÊÇÿһ¸öDLLÎļþ¶¼ÓУ©ÕâÊÇΪÁ˱ãÓÚά»¤ºÍÉý¼¶¡£¾Ù¸öÀý×Ó°É£¬ÔçÆÚµÄWin95ÖÐÓÐÒ»¸öBUGÄǾÍÊÇÔÚÈòÄê²»ÄÜÕýÈ·ÏÔʾ2ÔÂ29ÈÕÕâÒ»Ìì¡£ºóÀ´£¬Microsoft·¢²¼ÁËÒ»¸ö²¹¶¡³ÌÐò¾ÀÕýÁËÕâ¸öBUG¡£ÖµµÃÒ»ÌáµÄÊÇ£¬ÎÒÃDz¢Ã»ÓÐÖØ×°Win95£¬¶øÊÇÓÃа汾µÄDLL´úÌæÁ˾ɰ汾µÄDLL¡££¨¾ßÌåÊÇÄÄÒ»¸öDLLÎļþ±ÊÕßһʱÏë²»ÆðÀ´ÁË¡££©ÁíÒ»¸ö³£¼ûµÄÀý×ÓÊÇÇý¶¯³ÌÐòµÄÉý¼¶¡£ÀýÈ磬ÖøÃûµÄDirectX¾Í¶à´ÎÉý¼¶£¬ÏÖÔÚÒѾ­·¢Õ¹µ½ÁË6.0°æÁË¡£¸üÃîµÄÊÇ£¬µ±ÎÒÃÇÊÔͼ°²×°½ÏµÍ°æ±¾µÄDLLʱ£¬ÏµÍ³»á¸øÎÒÃÇÌáʾ£¬±ÜÃâÈËΪµÄ²Ù×÷´íÎó¡£ÀýÈçÎÒÃÇÉý¼¶Ä³Ó²¼þµÄÇý¶¯³ÌÐòʱ£¬¾­³£Åöµ½WindowsÌáʾÎÒÃǵ±Ç°°²×°µÄÇý¶¯³ÌÐò±ÈÔ­À´µÄÇý¶¯³ÌÐò¾É¡£
ËÄ¡¢±È½Ï°²È«¡£
¡¡¡¡ÕâÀï˵µÄ°²È«Ò²°üÀ¨ºÜ¶à·½Ãæ¡£±


Ïà¹ØÎĵµ£º

delphi»ñÈ¡WindowsϵͳµÄ½ø³ÌÔËÐÐÐÅÏ¢

 delphi»ñÈ¡WindowsϵͳµÄ½ø³ÌÔËÐÐÐÅÏ¢
×Ô´Ó³öÏÖwindowsϵͳÒÔÀ´£¬¸÷ÖÖ¸÷ÑùµÄÈí¼þ²ã³ö²»Çî¡£¹ºÂò»òÕßÃâ·ÑÏÂÔØÒÔºó£¬ÇáÇáµã»÷Install»òÕßSetupÒÔºó£¬ÉÔ×÷ЩÐí¼òµ¥ÅäÖþÍÍê³É°²×°µÄÕû¸ö¹ý³Ì¡£ÏÔÈ»Õâ¸øÓû§´øÀ´ÁËÐí¶à·½±ã£¬µ«¶ÔÓû§À´ËµÕâЩÈí¼þËƺõÊǸö"ºÚÏ»×Ó"£¬Õ¹ÏÖÔÚÓû§ÃæÇ°µÄ½ö½öÊÇ»ªÀöµÄÍâ±íºÍ¼ò½àµÄ²Ù×÷£¬ÖÁÓÚÈí ......

delphiÖÐWEBBrowserÍøÒ³JSº¯Êýµ÷ÓÃdelphiº¯Êý

1.1¡¢¼¤»î
var doc,url:Olevariant ;
begin
url:='about:blank' ;//»òÕßÒ»¸öÓÐʵ¼ÊÒâÒåµÄurl
WebBrowser1.Navigate2(url);//ÕâÑù¾Í¼¤»îÁË£¡
end;
1.2¡¢Ð´HTML´úÂë
var doc:Olevariant ;
s:string;
begin
doc:=WebBrowser1.Document;
doc.clear;//Çå³þÔµÓÉÄÚÈÝ£¬ÒÔ±ãдÐÂÄÚÈÝ
doc.write('<html>');
//ÆäË ......

ÓÃdelphi ÔÚWordÉÏÃæÔö¼ÓÒ»¸ö°´Å¥

н¨Ò»¸öActive Library
2. н¨Ò»¸öCOM Object£¬ÔÚClass NameÌîÒ»¸öÃû×Ö£¬ÈçTest¡£
µãÒ»ÏÂImplemented InterfaceºóÃæµÄList°´Å¥¡£ÔÙµãһ϶Ի°¿òÖеÄAdd Library°´Å¥£¬
Ñ¡Ôñ“Program Files\Common Files\Designer”Ŀ¼ÏµÄmsaddndr.dllÎļþ¡£
È»ºóÔÚÁбíÖÐÕÒµ½msaddndr.dllÀïÃæµÄ_IDTExtensibility2½Ó¿Úµã ......

delphi TListViewµÄʹÓÃ


ListView1.Items Ϊ±ê×¼ TlistitemsÀà
ListView1.Items
(1)¸³Öµ
with ListView1.Items.Add do
begin
Caption:=caption; //Ìí¼ÓµÚÒ»Ïî
SubItems.add(aaaaa); //Ìí¼ÓºóÃæÊý¾Ý
SubItems.add(1234);
SubItems.add(1234);
end; //Ò»¶¨ÒªÊ¹ÓÃWITH½á¹¹.
(2)È¡Öµ
listview1.Items.Item[i].Caption È¡µÃijÌõÊý¾Ý±êÌâ
l ......

DelphiÖпؼþµÄ¶¯Ì¬´´½¨

 ÍøÉÏËѼ¯×ÊÁÏ ²Î¿¼Ð´µÄ´úÂë ʵÏֿؼþµÄ¶¯Ì¬´´½¨ ÍêÕû´úÂëÈçÏ£º
 (ʵÏÖ½çÃæ)
-------------------
unit Unit1;
interface
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls, ComCtrls;
type
  TControlClass =class ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ