当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: library DBInstall;{ Important n
 

 

    摘要: unit yaohaoqiu;interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, spin;type tform1 = class(tform) button1: tbutton; spinedit1: tspinedit; spin......
 ·delphi操作wrod的几个知识点    »显示摘要«
    摘要: //-------------------初始化-------------------- var wapp,work:variant; try wapp:=getactiveoleobject(word.application); except wapp:=createoleobject(word.application); end;//---------------替换字符----------......


通过InstallShield 还原数据库的DLL(DELPHI)

library dbinstall;

【程序编程相关:怎么样知道硬盘上有哪几个分区或者指定的分

{ important note about dll memory management: sharemem must be the 【推荐阅读:delphi的调用约定

【扩展信息:Delphi中的布尔类型

  first unit in your librarys uses clause and your projects (select

  project-view source) uses clause if your dll exports any procedures or

  functions that pass strings as parameters or function results. this

  applies to all strings passed to and from your dll--even those that

  are nested in records and classes. sharemem is the interface unit to

  the borlndmm.dll shared memory manager, which must be deployed along

  with your dll. to avoid using borlndmm.dll, pass string information

  using pchar or shortstring parameters. }

uses

  comserv,

  sysutils,

  classes,

  forms,

  ufrmmain in ufrmmain.pas {frmmain};

{ open the mainform, the entertance of library}

function openform():integer; stdcall;

var

  frmmain: tfrmmain;

begin

  frmmain:=tfrmmain.create(nil);

  frmmain.showmodal();

  result:=0;

  frmmain.free;

end;


...   下一页
 ·从dbgrid,stringgrid导出excel    »显示摘要«
    摘要: procedure tdm.copydbdatatoexcel(target: tdbgrideh;mb,filename: string);varicount, jcount: integer;xlapp: variant;sheet: variant;beginscreen.cursor := crhourglass;if not varisempty(xlapp) thenbegin xl......
» 本期热门文章:

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