Today I found what result in the yesterday bug.
#ifdef _SPLITTER_WINDOW_H_
#define _SPLITTER_WINDOW_H_
...
The preprocess macro caused the bug. The first time a file included the header file, it did not find a defined "_SPLITTER_WINDOW_H_",
so the class is not compiled. Therefore, the compiler reported a illegal class error. The correct is following.
#ifndef _SPLITTER_WINDOW_H_
#define _SPLITTER_WINDOW_H_
...
Today I also finished the server panel of my kiang. I have to have a rest, coding GUI is so hard.
#ifdef _SPLITTER_WINDOW_H_
#define _SPLITTER_WINDOW_H_
...
The preprocess macro caused the bug. The first time a file included the header file, it did not find a defined "_SPLITTER_WINDOW_H_",
so the class is not compiled. Therefore, the compiler reported a illegal class error. The correct is following.
#ifndef _SPLITTER_WINDOW_H_
#define _SPLITTER_WINDOW_H_
...
Today I also finished the server panel of my kiang. I have to have a rest, coding GUI is so hard.