I'm actually doing this with helper executables that are 32bit. But can I do it with DLLs that run on 32bit CodeDOM?
Can I run a C# assembly (dll) as 32bit from a 64bit application?
"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
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
© 2022 - 2024 — McMap. All rights reserved.