I'm trying to write a C# dll for use in an Access VBA application. The dll works fine (only) when called with full file path:
Declare Function MyObject Lib "\path\to\my.dll" () As Object
despite the .dll being in the same folder.
The problem arises however when I call another dll (Test.dll) from my.dll (also in the same folder). I get:
I've tried adding the path to Environment Variables Path (which allowed me to declare my.dll function without full path) but that didn't work... Any help would be appreciated!
Run depends.exe on the dll. If a dependency is missing vba claims it can't find the dll. Go figure.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.