What is the difference between #include "MyClass.h" and #include ". \ Myclass.h"

I am developing VS2010 and want to add code to an existing project. By the way, this is Win32 / MFC.

And I couldn't help but notice that in the MyClass class (in this case, MyClass was an extension of the CDialog class) at the top of the cpp file the following was included:

#include "MyClass.h"
#include ".\myclass.h"

I noticed that the second inclusion was entered without a capital letter, but I could not understand why?

+4
source share
3 answers

" MyClass.h" will be searched by the path INCLUDE_DIR, which is defined in the settings of your project.

" ./myclass.h" will search in the same directory as the current file.

Windows , , , .

, , VS, ...

: , . . Il #include <file.h> , .

+1

.\ , . , .

0

#include "MyClass.h" - , #include ".\myclass.h" - .

, "MyClass.h" inc , MyClass.cpp .

0

Source: https://habr.com/ru/post/1683855/


All Articles