Answer the question
In order to leave comments, you need to log in
How to connect a class from another directory in visual studio. Link 2019?
A c++ project in vs looks like this. What are solutions anyway?
2 main functions in 2 projects, in the second project I want to call a function from the first one
, when I start I get LINK2019
<pre>
Решение Proect
Проект1 //англ.
Ссылки
Внешнии зависимости
Исходные файлы
Main.cpp
class.cpp
заголовки
class.h
Проект2
Ссылки
Внешнии зависимости
Исходные файлы
Main.cpp
</pre>
Answer the question
In order to leave comments, you need to log in
If you have 2 executable files in your solution, then it will not work out just like that and call the function. It is necessary that one of the projects be executable (exe), and the second one should be linked to the first one as a dll or lib.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question