开发者

p/invoke dll loads fine on dev machines but distributed applications (xp/windows7) p/invoke .dll cannot be found

开发者 https://www.devze.com 2023-01-25 20:22 出处:网络
We built a project in c# that uses a .dll which we use p/invoke to access functions within the .dll.It works on our development machines, we can create an installation version of our software which ru

We built a project in c# that uses a .dll which we use p/invoke to access functions within the .dll. It works on our development machines, we can create an installation version of our software which runs fine but if we load it on other xp machines and windows 7 machines which aren't dev machines it reports an error that the .dll that it is trying to p/invoke cannot be found. The error is repored as the 'the application has failed to start because its side by side configuration is not correct.'

What开发者_JAVA技巧 are we doing wrong?

Thanks, Ron.


Try installing the VC++ redistributable.


Also check that the dll is in the path. It does make a difference, I swear!

0

精彩评论

暂无评论...
验证码 换一张
取 消