I am creating a 64-bit program that relies on a function in a 32-bit dll. I am Using Lazarus-0.9.29-25159 and fpc-2.4.1-20100504 for Windows 64-bit. I am running Windows 7 64-bit.
The program compiles with no errors and runs if I comment out the call to the external function. This is true even when the unit with the interface is used.
When the call to the interface is not commented-out I get an error when starting the program as shown in the image. I did not find any useful information when I searched for this error code. Most of the information pointed to Viruses and Worms, but a scan of my system revealed nothing.
The call in my code to the interface in the other unit seems to cause the problem, but the call is in a function that does not run at start-up. Commenting out the call prevents the error.
Is the problem that the dll is 32-bit? Why would including (using) the unit with the interface not trigger the error, while including the function call in my code without running that call triggers the error?