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?
" MyClass.h" will be searched by the path INCLUDE_DIR, which is defined in the settings of your project.
MyClass.h
" ./myclass.h" will search in the same directory as the current file.
./myclass.h
Windows , , , .
, , VS, ...
: , . . Il #include <file.h> , .
#include <file.h>
.\ , . , .
.\
#include "MyClass.h" - , #include ".\myclass.h" - .
#include "MyClass.h"
#include ".\myclass.h"
, "MyClass.h" inc , MyClass.cpp .
Source: https://habr.com/ru/post/1683855/More articles:Firebase Hosting Usage Statistics - What Does "Storage" Mean? - firebaseThe correct way to terminate a workflow - c ++Azure Service Fabric 7148 Activation Error - azureKotlin - convert cycle to functional style - functional-programmingОтправка электронной почты из контактной формы Create-React-App - javascriptMatrix not adding correctly - pythonASP.NET Core 2.0 only searches in public folders - asp.netHow to handle errors in NSPersistentContainer.loadPersistentStores? - iosHow to Plan the Most Effective Patio Route - algorithmHow to handle _persistentStoreCoordinator errors in the first release? - iosAll Articles