从可用的二进制文件探索ActiveX控件(.ocx) [英] Exploring ActiveX Control (.ocx) from available binaries

查看:91
本文介绍了从可用的二进制文件探索ActiveX控件(.ocx)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我的设备由带有软件界面的控制器控制。我没有关于SDK的任何文档,但有软件手册。



这个软件的二进制文件夹中有.dll文件和.ocx文件。



我想用C#开发一个自定义应用程序,使用可用的.ocx和.dll文件与控制器通信。



首先,我想知道这项任务是否可以实现。其次,如果可以实现,那么如何?



.ocx文件对我有什么帮助吗?我不知道该怎么做。



请帮助我解决这个问题。



干杯,



证明。

Hi,

I have a device controlled by a controller with a software interface. I do not have any documentation regarding SDK available but a manual for software.

This software has .dll files and .ocx files available in it''s Binaries folder.

I want to develop a custom application in C# to communicate with the controller using available .ocx and .dll files.

First of all I want to know if this task is achievable. Secondly, if it is achievable then how?

Can .ocx files be of any help to me? I do not know what to start with.

Kindly, help me in this regards.

Cheers,

Proof.

推荐答案

这取决于类型库是否可用于OCX。它可以作为资源包含在二进制文件中或其他位置。检查的最快方法是在C#中添加OCX引用。 添加参考 - >浏览。 Visual Studio将尝试创建ocx的包装器。如果成功,您可以从C#代码开始控制ocx。您没有任何文档,因此您应该猜测属性和方法名称的行为。
It depends if the a typelib is available for the OCX. It may be included as a resource in the binary or somewhere else. The quickest way to check that is to add OCX reference in C#. "Add Reference->Browse". Visual Studio will try to create a wrapper of the ocx. If it succeeds you may start controlling the ocx from C# code. You don''t have any documentation so that you should guess the behavior from property and method names.


这篇关于从可用的二进制文件探索ActiveX控件(.ocx)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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