- Tomáš Podzimek
- PowerBuilder
- Tuesday, 20 February 2024 09:31 AM UTC
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áš
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.