当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 别告诉我在win98里再打一次包。 ......
 ·有关recordsource的问题。    »显示摘要«
    摘要: 我自己在编写一个activex控件时, 在控件中有一个data控件,现在要在此控件中继成data控件的 recordsource属性,用以下代码,调试进出错。 错误说第二个过程(let...)的参数声明不对。请指教! data控件的名字叫data1 public property get recordsource() recordsource = data1.recordsource en......


如何用DDE连接Word啊,,,,我给分很快的,,,

如何用DDE连接Word啊?,,,,我给分很快的,,,只要解决问题,我马上给分,,

NO.1   作者: njbudong

unit   Unit1;  
   
  interface  
   
  uses  
      SysUtils,   WinTypes,   WinProcs,   Messages,   Classes,   Graphics,   Controls,  
      Forms,   Dialogs,   StdCtrls,   DdeMan;  
   
  type  
      TForm1   =   class(TForm)  
          DdeConv:   TDdeClientConv;  
          Word:   TButton;  
          procedure   WordClick(Sender:   TObject);  
      private  
      public  
      end;  
   
  {DdeConv   properties   are   :     }  
  {     ConnectMode   :   ddeManual   }  
  {     DdeService     :   [None]         }  
  {     Ddeic         :   [None]         }  
  {     FormatChars   :   False           }  
  {     Name                 :   DdeConv       }  
   
  var  
      Form1:   TForm1;  
   
  implementation  
   
  {$R   *.DFM}  
   
  procedure   TForm1.WordClick(Sender:   TObject);  
  begin  
    if   DdeConv.SetLink(   WINWORD,   D:\WINWORD\DDETEST   )   and  
          DdeConv.OpenLink   then  
        begin  
          ShowMessage(   Link   with   WinWord   established   !   )   ;       {   be   sure   the   link   exist   }  
          DdeConv.PokeData(   Bm1,   Data   from   Delphi   !   )   ;                 {   insert   Data   from   Delphi   in   word   document   }  
          DdeConv.CloseLink   ;  
        end   ;  
  end;  
   
  end.  
   
 


 ·关于返回类型的问题    »显示摘要«
    摘要: 在《c++ 大学教程》的p234: int ascending( int a, int b) { return b < a; } b < a 应该时bool型吧,为什么冠以int呢? ......
» 本期热门文章:
· 热门栏目:
» 相关精选文章
» 其它相关:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE