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.
精彩评论