I have 3 header files in the project: Form1.h - this is header with implementation there, TaskModel.h with TaskModel.cpp, TaskController.h with TaskController.cpp.
There are content of files:
//-----
TaskController.h
#pragma once
#include "TaskModel.h"
..........
//----
Form1.h
#pragma once
#include "TaskModel.h"
#include "TaskController.h"
.........
The problem:
How to make Form1.h to be included to TaskModel.h. When I directly include, Form1.h to TaskModel.h then there are many errors. If to use forward declaration, how to organaize that ?