Reputation: 57
I'm thinking like Apple did with their universal binaries containing both x86 and ppc code
Upvotes: 0
Views: 195
Reputation: 179809
No. The IMAGE_FILE_HEADER.Machine
field determines whether a DLL is x86 or x64. One field cannot hold two different values simultaneously, and there's only one IMAGE_FILE_HEADER
in a DLL.
That said, a pure .Net DLL contains IL instructions, and they can be compiled to either 32 bits or 64 bits.
Upvotes: 1
Reputation: 7238
You can build the dll as 32Bit and it can work in both 64 and 32 environment, but it will be 32 bit dll
Upvotes: 0