Visual Studio can't find dll files


I use VS2017 and want to create a C++ programm which needs a library for a microcontroller.

  1. I downloaded the library from the companies website, unpacked the folder and copied it into my project folder.
  2. Next step was Properties > C/C++ > Additional Include Directories and inserted the path to the folder where the *.h file is located.
  3. Then Linker > Additional Library Directories > General and inserted the path which leads to the folder where the *.lib file is stored.
  4. Afterwards Linker > Input > Additional Dependencies here I filled in the name of my *.lib file (like "xyz.lib")
  5. Finally I moved the *.dll file in the Debug-Folder.

(I don't know if this is an relevant information, but the *.h and *.lib file are in the same folder.)

The problem I'm facing right now is an error when I want to Debug my programm. The Error Message says:

"The application was unable to start correctly (0xc000007b). Click OK to close the application."

I did some research and found out that this is often linked to an missing *.dll file, so I used the programm Dependencies to analyse my executable file. Surprisingly the programm shows that my included *.dll file is missing.

At this point I'm stuck. I looked at several websites to find a solution but none of then could help me.

UPDATE: I'm able to build my project succesfully, but not to debug it. I don't know if this might help.

What are some measures to fix this error? Any thoughts on this? Thank you in advance.

asked on Stack Overflow Feb 12, 2019 by David9472 • edited Feb 12, 2019 by David9472

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0