Visual Basic访问API的两个程序实例 [英] Visual basic access the API two instances of the program

查看:82
本文介绍了Visual Basic访问API的两个程序实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



使用Visual Studio 2015 Visual Basic。



我有一个用于与赛车ECU(系统监视器)通信的软件,它提供了一个API,以便我可以参考ECU配置中的信息。



我必须运行两个软件实例,因为我需要同时监控两辆赛车。我已经设法编写代码来枚举和存储每个实例的ProcID,我想用它将我的工具绑定到每个实例separtley,以便从中提取数据。



我无法弄清楚如何将我的代码插入到系统监视器的各个实例中以将数据拉回来。我想使用针对实例运行的按钮单击,使用System Monitor ActiveX API从系统监视器中提取一些ECU特定数据。



任何提示都会很大赞。



问候,



乔。



我尝试了什么:



Moslty正在挖掘MSDN文档,但因为我处理的是无标准的Active X API。

Hello All,

Using Visual Studio 2015 Visual Basic.

I have a piece of software used to communicate with race car ECU's (System Monitor), it is provided with an API in order I can reference information in the ECU configuration.

I have to run two instances of the software as i need to monitor two race cars at the same time. I have managed to write the code to enumerate and store the ProcID of each instance and I would like to use that to bind my tool to each instance separtley in order to pull data from them.

I can't work out how to ind my code to the individual instance of System Monitor to pull the data back out. I would like to use a button click which runs against an instance to pull some ECU specific data from System Monitor using the System Monitor ActiveX API.

Any tips would be greatly appreciated.

Regards,

Joe.

What I have tried:

Moslty digging through the MSDN documentation, but struggled as I am dealing with a none standard Active X API.

推荐答案

首先与API生产商交谈 - 他们会比我们知道更多关于它的信息(目前还没有任何内容)

我们不知道它是如何工作的,API,你的代码,没有它 - 我们甚至不知道它可能是哪个API - 所以我们有机会帮助你这是非常小的。

与编写它的人交谈 - 他们真的是最好的起点。
Start by talking to the API producers - they will know a whole lot more about it than we will (which at the moment is nothing at all)
We have no idea how any of it works, the API, your code, none of it - we don't even know which API it might be - so the chances of us being able to help you here are vanishingly small.
Talk to the people who wrote it - they are really the best place to start.


这篇关于Visual Basic访问API的两个程序实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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