I have a DLL written in C++ that needs to be used by an application in C#. Settings: 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.
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.