K
K
kykyryky2016-11-22 14:55:43
.NET
kykyryky, 2016-11-22 14:55:43

Can two x86 and x64 exe files share common dlls?

I have a wpf project that works with excel files using oledb. Depending on the bitness of the Microsoft Access Database Engine installed on the system, oledb works normally only in an assembly whose bitness matches the Engine's bitness. If the Engine is x86(x64), then the x86(x64) assembly works.
Also in the syulushen there are library projects that are assembled into several dlls. Can I make two x86 and x64 executables work with one set of dlls? If so, how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-11-22
@kykyryky

You cannot, the bitness of the executable file and the libraries used by it must match. The executable file shares its address space with the library, and x86 and x64 have different memory cell sizes, they will not be able to work correctly in the same address space.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question