开发者

Unable to load C++ DLL in C# application in Windows 7 32 bit OS

开发者 https://www.devze.com 2023-03-14 19:04 出处:网络
I have a DLL written in C++ that needs to be used by an application in C#. Setti开发者_JAVA技巧ngs:

I have a DLL written in C++ that needs to be used by an application in C#. Setti开发者_JAVA技巧ngs: OS: Win7 32 OS C++ DLL: 64 bit C# application: 64

I set the Platform as 64 bit for C++ project. then i created the DLL. If i try to access the C++ dll, it fails. getting error "Invalid DLL"


The answer is exactly as winSharp93 said. If the DLL is 64-bit, you can't load it on a 32-bit OS.

0

精彩评论

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