Delphi利用AutoCAD类型库调用DWF Viewer 的例子(原创)
来源:互联网 发布:win10不允许安装软件 编辑:程序博客网 时间:2024/05/20 03:05
unit Unit1;
{ Delphi利用AutoCAD类型库调用DWF Viewer 的例子 }
{ 作者:钏裕民 2006年6月10日于昆明 }
{ Email : chuanyumin@126.com.cn }
{ qq : 670856630 }
{ 说明: }
{ 实际上AutoCAD中有许多类型库,不仅是扩展名是.tlb的是类型库 }
{ 许多AutoCAD安装目录下的.dll文件也是类型库,也可导入,可在编程中利用 }
{ 这里,仅演示C:/Program Files/Autodesk/Autodesk DWF Viewer/AdView.dll }
{ 导入类型库后的利用,其它仍在摸索。 }
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, OleCtrls, StdCtrls, ExpressViewerDll_TLB;
type
TForm1 = class(TForm)
CExpressViewerControl1: TCExpressViewerControl;
Button1: TButton;
Label1: TLabel;
Label2: TLabel;
Button2: TButton;
procedure MouseDBClick(ASender: TObject; nX, nY: Integer;
const pHandled: IDispatch);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.MouseDBClick(ASender: TObject; nX, nY: Integer;
const pHandled: IDispatch);
begin
CExpressViewerControl1.BrowseProperties;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
Close;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
CExpressViewerControl1.ExecuteCommand('NEXT');
end;
end.
- Delphi利用AutoCAD类型库调用DWF Viewer 的例子(原创)
- Delphi调用AutoCAD DWF Viewer[转]
- Free Dwg Viewer-免费的AutoCAD DWG/DWF/DXF文件查看器
- 一个 ORACLE 调用 DLL 的例子(原创)
- delphi自定函数调用的例子
- Delphi用ADOquery主从表例子(原创)
- delphi 动态调用dll例子
- delphi 调用系统函数例子
- Delphi 调用JAVA WebService例子
- delphi调用C#写的web服务例子
- delphi调用C#写的web服务例子
- Delphi 调用JAVA WebService 操作数据库登录的例子
- 利用C#进行AutoCAD的二次开发
- 【原创】StrutsRegedit的例子...
- delphi 数组类型与数组指针的巧妙利用
- 关于使用VBA调用AutoCAD的学习
- c#调用Delphi DLL pchar类型的转换
- Delphi调用C++ DLL函数,有些类型相关的知识
- 详细介绍在tomcat中配置数据源以及数据源的原理
- 开始的总结
- 理解 Proc 文件系统(ZT)
- ArrayList用法(转载)
- 怎样结交比自己身份高的人
- Delphi利用AutoCAD类型库调用DWF Viewer 的例子(原创)
- SQLServer2005里怎样对使用with encryption选项创建的存储过程解密
- 使用 /proc 文件系统来控制系统(zt)
- linux常用命令
- 葡萄酒的文化
- 特殊样式表的格式
- C++中二维数组new小结
- 23种经典设计模式的java实现_1_抽象工厂模式
- Sybase 笔记