Click here to Skip to main content
15,886,035 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Hello, I'm adding Panasonic IP Camera SDK to my project but it is 32bit. I need a 64bit SDK.
Is there any way to convert 32bit DLL files to 64bit DLL or use 32bit DLL with 64bit C# application?

What I have tried:

I've tried dotpeek and converted one 32bit dll to 64bit. but for the other one dotpeek decompiles the dll with some errors. I found some ways like running a 32bit WCF service and calling it from my project or Making COM DLL.
What is the best way to do that?
Posted
Updated 22-Feb-21 7:51am

No.

You would need to get the original source code (and permission to modify it), fix any issues which would prevent it from working in a 64-bit process, and recompile it as a 64-bit library.

If the library depends on other 32-bit libraries or drivers, you would need to repeat this process for each of them, and each of their dependencies, and so on.

You can only use tools like dotpeek if the library was written in .NET - and even then, it's likely to be illegal unless you have prior consent from the copyright holder.

If the manufacturer doesn't provide a 64-bit library, then you'll need to call it from a 32-bit process.
 
Share this answer
 
If possible create a separate 32 bits application that uses the 32 bit dll and call that using Process.Start()[^] from your 64 bits application.

There are other ways like using named pipes for inter-process communincation, but they are quite complex to implement.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900