Can I run a C# assembly (dll) as 32bit from a 64bit application?
Asked Answered
H

1

6

I'm actually doing this with helper executables that are 32bit. But can I do it with DLLs that run on 32bit CodeDOM?

Homemaker answered 18/12, 2011 at 13:22 Comment(2)
"32bit CodeDOM" doesn't mean anything. The bitness of the process is locked in by the EXE. Mixing is not supported, you need the helper EXE.Rikkiriksdag
This is effectively a duplicate of 32bit dll in 64bit application in c#. The key bit of the chosen answer there is A process in Windows is either 32- or 64-bit and it can only load DLLs which match. Any attempt to load a DLL which does not match will fail and produce an error.Strychninism
T
1

Maybe, this helps you Calling 32bit Code from 64bit Process

But it's better to call 32bit from separate 32bit process, and your 64bit code could start it and communicate with it

Trapshooting answered 18/12, 2011 at 17:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.