I using Visual Studio 2019 with the latest FrameMaker Development Kit, creating plugins with C++. I can build the sample programs from the FDK so the environment setup is fine. Now I want to use functions from a DLL that already exists in the FrameMaker package. I inspected the DLL and all the functions I am calling from my code do exist in it.
I have the header files for the DLL, so the compiler is able to create the code. But I am unable to get the linker to integrate the existing DLL. In the error messages it shows that every reference to a function in the DLL is prepended with '__imp _'. Obviously, these renamed functions do not exist, so I cannot get a successful build.
Is there a setting I need to change in Visual Studio so that the function names are kept as they are? I tried to add the folder that contains the existing DLL to the Additional Library Directories but as long as the function names get mangled there is no way this is going to work.