[QUOTE=d_stranz;309698]Is the DLL yours or something from an external source? If it is yours and you have the source code, just add a 64-bit configuration to the project if it isn't already there and build that configuration. If it is not yours and you only have a 32-bit binary version, then you are probably stuck with making your program 32 bits as well. See this Stackoverflow article for workarounds.
The DLL is from an external source/ company. I am creating a program for this company. I think I can ask them to add a 64bit Configuration.
I've already tried making my program 32 bit. Now I have a LNK1107 Error - invalid or damaged file: reading at 0x2E0 not possible.![]()
I will have a try with the workarounds.
Typically, you don't use LoadLibrary to load a DLL at run time. Instead you link the executable with the .lib export library that is produced along with the DLL and let Windows take care of loading it. The major exception is if you are developing some sort of plug-in architecture where you do not know the DLLs you will be loading at build time and must load them dynamically at run time.
By the way, all 64-bit compilers I know of can also produce 32-bit binaries with the right compile and link flags.But I only have the DLL (and know about the functions within) I do not have .lib .h or .a files. I read that because of that I have to use LoadLibrary.
Thanks a lot for you support.
Bookmarks