dll文件的路径

dolemin 2002-04-25 12:40:08
如何获取进程内COM SERVER,即:.dll文件的路径
...全文
226 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
ddvboy 2002-08-02
  • 打赏
  • 举报
回复
up
NetFriend 2002-08-02
  • 打赏
  • 举报
回复
看看这段帮助对你有没有用:
TComServer is the class type of the ComServ variable that is declared and instantiated in the ComServ unit.

Unit

comserv

Description

TComServer is the class type used for a COM server, which is a module that contains COM or OLE class definitions. That module can be either an in-process server (DLL) or a local server (EXE).

TComServer properties contain all necessary information about the server, such as its type library, name, Help file, and so on. They also indicate when and how the server should be loaded and unloaded.

TComServer methods are used

To access TComServer properties.
To create associated class factories to instantiate the COM and OLE classes based upon their class identifier (CLSID).
To update the registry database with information about the COM and OLE classes.

TComServer is the type of ComServ variable that is automatically instantiated in the ComServ unit. Each module that is created as a server for COM objects has its own instance of ComServ.

To manage its class factories, the ComServer uses a TComClassManager object, which is accessed using the ComClassManager function in the ComObj unit. The class factories are used primarily by calls to TComClassManager methods.

Note: The ComServ unit declares and implements global routines that must be exported by each in-process server. These routines automatically handle the registering, unregistering, and unloading of the COM server.


property ServerFileName: string;

Description

Specifies the complete path and file name of the COM server.

ServerFileName contains the module name of the COM server. This name includes the path and extension of the file name for the module.
dolemin 2002-07-26
  • 打赏
  • 举报
回复
windows的搜索是如何实现的呢?
dolemin 2002-05-10
  • 打赏
  • 举报
回复
算了,作成安装程序得了
shuyi 2002-04-27
  • 打赏
  • 举报
回复
是啊,我以前也问过这个问题,后来也没能解决,关注
dolemin 2002-04-27
  • 打赏
  • 举报
回复
直接获取一个已知文件名的.dll是没人知道了,只好通过注册表变相获取COM Server的路径,不甘心!
dolemin 2002-04-26
  • 打赏
  • 举报
回复
好像不行
johnmack 2002-04-25
  • 打赏
  • 举报
回复
不知到
shangshang 2002-04-25
  • 打赏
  • 举报
回复
试试GetModuleFileName , 也可用这个函数的api
Larky 2002-04-25
  • 打赏
  • 举报
回复
好深奥啊?不懂得说,com server和.dll有什么关系啊?

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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