如何找到COM DLL的入口点 [英] How to find Entry Point of COM DLL

查看:94
本文介绍了如何找到COM DLL的入口点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

您对找到COM API的入口点有什么想法,以访问其功能.
我在C#项目中使用以下代码


[DllImport("C:\\ Program Files \\ Readsoft \\ FORMS \\ Bin \\ Interop.VWRUNTIMELib.dll")]
公共静态外部字符串OnAppStart();

当我使用此功能时,会给我错误
找不到DLL"C:\\ Program Files \\ Readsoft \\ FORMS \\ Bin \\ Interop.VWRUNTIMELib.dll"的入口点OnAppStart()

请指导我,我该如何为该功能设置入口点,或者如果您有任何其他建议....

谢谢与问候
Suresh KHarod

Hello All

do you have any Idea regarding finding of the entry point for a COM API to access its functions.
i am using the following code in a C# project


[DllImport("C:\\Program Files\\Readsoft\\FORMS\\Bin\\Interop.VWRUNTIMELib.dll")]
public static extern string OnAppStart();

when i use this function it Gives me Error that
unable to find Entry point OnAppStart() for DLL "C:\\Program Files\\Readsoft\\FORMS\\Bin\\Interop.VWRUNTIMELib.dll"

please guide me that how i can funcd the entry point for this or if you have any other suggestion....

thanks & Regards
Suresh KHarod

推荐答案

您可以使用此工具找到所有导出的函数 [ ^ ]:)
You could find all exported functions using this tool[^] :)


如果是一个COM DLL,为什么不像添加一个.Net程序集一样添加引用呢?

对我来说,这似乎是一种访问API的更安全,更轻松的方法(除非您有特定的目标).
If it''s a COM DLL, why not just add a reference like you would for a .Net Assembly?

To me this seems a far safer and easier way of accessing the API (unless you have a specific aim in mind).


这篇关于如何找到COM DLL的入口点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆