【问题标题】:Run external .DLL commands with PHP on Windows localhost在 Windows localhost 上使用 PHP 运行外部 .DLL 命令
【发布时间】:2014-01-05 09:32:26
【问题描述】:

我有一个项目需要从 PHP 运行 VB 命令。这是一个电路板(来自 PC-control 的 MotorBee),它有自己的 mtb.dll 文件,可以使用 VB 和类似的东西进行编程:LINK TO FILE HERE(您可以跳到代码开始的第 370 行)

有没有办法通过php将此函数发送到mtb.dll(因为这实际上是我需要发送的部分):

Declare Function SetMotors Lib "mtb.dll" (ByVal on1 As Integer, ByVal speed1 As Integer, ByVal on2 As Integer, ByVal speed2 As Integer, ByVal on3 As Integer, ByVal speed3 As Integer, ByVal on4 As Integer, ByVal speed4 As Integer, ByVal servo As Integer) As Boolean

【问题讨论】:

    标签: php vb.net dll


    【解决方案1】:

    您可以使用PHP Win32 API,它允许您调用在 Win32 库中声明的函数。这里是some examples

    【讨论】:

      猜你喜欢
      • 2015-06-13
      • 1970-01-01
      • 2013-07-23
      • 2018-04-07
      • 2020-07-12
      • 2021-03-27
      • 1970-01-01
      • 1970-01-01
      • 2021-05-17
      相关资源
      最近更新 更多