Hello,
We are currently converting a "legacy" system written in VFP to C++. The system is very large i.e., it covers almost all corporate applications. As such, we want to implement the migration to C++ on a piecemeal approach starting with the general functions using DLL.
Using CodeBlocks wizard, I created a minimal DLL project and compiled it without encountering any errors. However, when I tried to use it in VFP under Windows 11, I got an error "Cannot load 32-bit DLL".
I assumed that the DLL generated was 64-bit so I went back to CB, edited the compiler settings and checked Target x86 (32bit) [-m32] and rebuilt the project. This time, I encountered 21 errors all of which were related to ld.exe not able to find library files. So, I edited the linker settings to include the lib files (ex. libuser32.a, libmingw32.a, libmoldname.a, etc.) including the full path. I also included in the Seach Directories the folder where these files are located. When I built the project, I still got the same "cannot find..." errors.
I tried searching Google for answers but found no solution that worked. Any help will be greatly appreciated.
Thanks.