How should I name a native DLL distributed in both 32-bit and 64-bit form?
Posted
by Spike0xff
on Stack Overflow
See other posts from Stack Overflow
or by Spike0xff
Published on 2010-03-05T08:46:14Z
Indexed on
2010/04/28
22:57 UTC
Read the original article
Hit count: 263
I have a commercial product that's a DLL (native 32-bit code), and now it's time to build a 64-bit version of it. So when installing on 64-bit Windows, the 32-bit version goes into Windows\SysWOW64, and the 64-bit version goes into... Windows\System32! (I'm biting my tongue here...) Or the DLL(s) can be installed alongside the client application.
What should I name the 64-bit DLL?
Same name as 32-bit: Two files that do the same thing, have the same name, but are totally non-interchangeable. Isn't that a recipe for confusion and support problems?
Different names (e.g. product.dll and product64.dll): Now client applications have to know whether they are running 32-bit or 64-bit in order to reference my DLL, and there are languages where that isn't known until run-time - .NET being just one example. And now all the statically compiled clients have to conditionalize the import declarations: IF target=WIN64 THEN import Blah from "product64.dll" ELSE import Blah from "product.dll" ENDIF
The product contains massive amounts of C code, and a large chunk of C++ - porting it to C# is not an option.
Advice? Suggestions?
© Stack Overflow or respective owner