开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜