Corey0606
V2EX  ›  问与答

请教大家 c++ dll 跨电脑调用(网络共享)问题

  •  
  •   Corey0606 · Jan 17, 2023 · 1028 views
    This topic created in 1258 days ago, the information mentioned may be changed or developed.

    场景是有一台厂商电脑搭配的硬件设备(电脑 10 年前的太慢卡顿根本编不了程序),我们需要在另一台电脑上调用它上面软件的 dll(dll 作用是控制厂商的硬件接口),然后我想通过网络共享厂商电脑上的 dll 实现,但是发现共享以后调用本地 pc 好像把 dll 加载到内存里去了(比如说 dll 需要加载电脑上的资源,他会去程序所在的电脑里找而不是厂商电脑,把工作目录切换到厂商电脑上的共享路径也不管用),求大佬解惑!

    4 replies    2023-01-17 15:09:27 +08:00
    bitdepth
        1
    bitdepth  
       Jan 17, 2023
    你需要的是把 dll 的 ioctl 攔阻後轉發
    Corey0606
        2
    Corey0606  
    OP
       Jan 17, 2023
    @bitdepth 您是指组织和转发 dll 中的的 IO 操作嘛,主要是我看不到 dll 源码
    proxytoworld
        3
    proxytoworld  
       Jan 17, 2023
    只能 rpc 啊。。Windows 有对应接口
    Corey0606
        4
    Corey0606  
    OP
       Jan 17, 2023
    @proxytoworld 我看这种类似 socket,目前是在 dll 所在的电脑写了个 server 去分发
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2918 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 02:26 · PVG 10:26 · LAX 19:26 · JFK 22:26
    ♥ Do have faith in what you're doing.