Win2008中Microsoft.Web.Administrator.dll是用来开发IIS7,Microsoft.Web.Administrator是.NET Framework 类库下的一个命名空间,里面定义了所需要的各种方法和属性,现在想要delphi7中调用这些方法和属性,要怎么调用网上找过差不多都是说用C:\>tlbExp Microsoft.Web.Administrator.dll /out:1.tlb这种方法先转成tlb文件,然后再用delphi7-project-import type library,试过了是能生成TLB,但是delphi中导入后,显示的单元中,没有任何的函数和方法,
只有
interfaceuses Windows, ActiveX, Classes, Graphics, StdVCL, Variants;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
Microsoft_Web_AdministrationMajorVersion = 7;
Microsoft_Web_AdministrationMinorVersion = 0; LIBID_Microsoft_Web_Administration: TGUID = '{1AD2D18C-E5DA-3752-8FA2-240A42C24ED5}';
implementationuses ComObj;哪个大虾知道具体要怎么弄,才能使delphi7可以调用Microsoft.Web.Administrator.dll里面的内容。
只有
interfaceuses Windows, ActiveX, Classes, Graphics, StdVCL, Variants;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
Microsoft_Web_AdministrationMajorVersion = 7;
Microsoft_Web_AdministrationMinorVersion = 0; LIBID_Microsoft_Web_Administration: TGUID = '{1AD2D18C-E5DA-3752-8FA2-240A42C24ED5}';
implementationuses ComObj;哪个大虾知道具体要怎么弄,才能使delphi7可以调用Microsoft.Web.Administrator.dll里面的内容。
解决方案 »
- 关于登陆窗口的问题了,
- 急!!请问:为何DELPHI7无法向ACCESS97中输入数据?ACCESS97数据库结构能在DELPHI中更改吗?
- 急需!!!!小程序编写!!小妹在线等!!
- 帮忙,找一个压缩
- 新来的~~~推荐几个好点的 Delphi 资源站
- 哪位老兄有多余的QQ,送我一个,100分相送!!
- 【困惑很久的类转换问题,TEdit(..)和(.. as TEdit)的区别是什么】
- 关于InstallShield自动配置BDE
- 如何实现延时
- 从一幅图取点生成新图,不能用SCANLINE,有没有提高速度的办法呢?
- 有关progressbar的使用
- delphi写的DLL,参数是BYTE数组,求救!!
其实也就是你的方法,发两个链接参考一下
1、Delphi 调用 .NET 程序集
2、如何在Delphi中调用.Net编写的DLL中的函数