Skip to main content
Graduate
January 22, 2024
Solved

Cannot open file CR95HF.lib while including CR95HF DLL

  • January 22, 2024
  • 1 reply
  • 1031 views

Hello, 

I am trying to use the "CR95HF.dll" file provided in STSW-95HF002 to make my own Visual C++ application. I tried everything I can to load this DLL but the visual studio is not able to lead it and gives a linking error - LKN1104 Cannot open file 'CR95HF.lib'

I googled this error and tried all the possible ways and still was not able to proceed. 

I want to make a console application of my own to read my tag from MB1054B board. 

What is the configuration required by the Visual Studio so that I can avoid this error? Should the configuration platform on Visual Studio project should be x64 or Win32? What should be the build configuration, build or release?

Also, I tried putting the .lib and .dll file at the same location as the my project's solution file. It should work right? the .dll file is also placed at C:\Windows\System32

I want to make a .exe where the terminal pops up and starts reading my tag and printing the data. 

Some help on this would be appreciated :) 

 

best

    This topic has been closed for replies.
    Best answer by Kenadams

    No worries, I solved it. It was a target selection and Visual Studio config issues. :) 

    1 reply

    KenadamsAuthorAnswer
    Graduate
    January 22, 2024

    No worries, I solved it. It was a target selection and Visual Studio config issues. :)