Hi all,
We use some custom DLLs (20+ years old). Somehow, I managed to compile it as a 64-bit version.
How to ensure that the application uses the correct version (32/64 bit) according to the IDE settings? For system DLLs (e.g., user32.dll), it works, but for this custom one, I do not know how to arrange it.
So far, I have 2 versions: our.dll and our64.dll, and in the definition of the external function, I currently rewrite it, for instance:
FUNCTION int GetDecimalSeparator(REF string as_separator, unsignedlong aul_length) library "our.dll" alias for "GetDecimalSeparator;Ansi"
to
FUNCTION int GetDecimalSeparator(REF string as_separator, unsignedlong aul_length) library "our64.dll" alias for "GetDecimalSeparator;Ansi"
or I need to copy a DLL with the correct bitness into a folder with the app (if the DLL names are the same for 32/64bit).
Surely, there is a smarter way.
Furthermore, I have read that PBD files are the same for both 32 and 64 bits. The only difference is in the exe.
Is there any way to create only an exe for 32 or 64 bits without having to run the build for the entire application?
Thanks in advance for the advice.
Regards,
Tomáš
When switching between 32 and 64 bit in the IDE, I need to copy the dll with the correct bitness each time, right? We will have to support both versions, at least in the beginning.
Answer to your semi-related question: I don't know :-). This dll is 20+ years old, I'm not the author and the author is no longer here. So far it has been a black box for me that has done done its job.
Regards,
Tomáš