VFP如何调用 tlb文件?

YUAN168 2013-01-31 04:15:01
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using System.Runtime.InteropServices;
using System.IO;
using System.IO.Ports;
using LabelManager2;


namespace CodeSoft
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
ApplicationClass lbl = new ApplicationClass();
lbl.Documents.Open("D:\\Document2.lab",false);
Document doc = lbl.ActiveDocument;
doc.Variables.FormVariables.Item("Var").Value = "kyle";

doc.PrintDocument(1);
lbl.Quit();

}

}
}
====================以上是C#代码,在vfp中如何调用 .tlb文件?
...全文
82 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
十豆三 2013-01-31
  • 打赏
  • 举报
回复
tlb文件是一个说明文件,通过TLB文件,用户可以得知你的DLL中的COM接口以及常量等信息。其可以单独发行,也可以作为组建DLL中的一个资源随组件一起发行。你可以在VS的Object Browser中看到该文件中包括哪些常数、接口、类,而每个类又包括什么方法和属性。微软提供的各种SDK中通常包括一个或数个TLB文件以方便编程。 所以你应该调用对应的 DLL 文件。

2,723

社区成员

发帖
与我相关
我的任务
社区描述
VFP,是Microsoft公司推出的数据库开发软件,用它来开发数据库,既简单又方便。
社区管理员
  • VFP社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧