VBA cannot find my DLL, despite hardcoding location.

后端 未结 3 1145
心在旅途
心在旅途 2021-01-22 11:35

I am using C++ to create a simple DLL that I can use from VBA code. However, while it works on my development computer, when attempting to access the DLL on different computers,

3条回答
  •  终归单人心
    2021-01-22 12:28

    It sounds like your DLL has dependancies on other DLLs that exist on your development machine but not on the target machine. When the OS loads your DLL but then can't find the dependent DLLs, it reports the same "cannot find file" error, making you think it cannot find your DLL when it really did. If that is the case, then you need to either distribute those extra DLLs or remove the dependencies on them.

提交回复
热议问题