C++ DLL 在不同机器上不 运行

C++ DLL does not run on different machine

我正在开发一个简单的 c++ 应用程序来生成一个 dll,稍后我将在 JNI 中使用它来调用 运行 本机 api,但问题是 dll 在我的机器上运行良好用于开发dll但不在服务器上。两台机器运行Windows7.

java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
    at java.lang.Thread.run(Unknown Source)

原因:java.lang.UnsatisfiedLinkError:de.deltacontrols.enteliprint.printer。 PrinterService.getStatus(Ljava/lang/String;)我

在机器上无法打开 dependency walker 中的 dll。检查输出是否有错误,您可能正在使用调试版本的 dll,它在 visual studio 的机器上运行良好,或者它可能是目标机器

上缺少的 c++ 可再发行组件