I want to use a pointer to the Drawing :: Color system structure in my colorVS inherited from my empty class color.

Color class:

// color.h class color { public: color() { ; } }; 

Class colorVS:

 //colorVS.h #include <vcclr.h> #include <ddraw.h> #include "color.h" typedef System::Drawing::Color colorType; class colorVS : public color { public: colorVS(colorType* nclr); colorType* getVS(); private: colorType* VScolor; }; 

However, in this case, colorType * is marked as "Invalid incomplete type" and nothing is compiled and does not work. At the same time, if the colorVS inheritance from my color is removed, everything works fine.

Is it possible to solve this problem and, if so, how?

    1 answer 1

    In general, I launched it again this morning, after restarting the computer, Visual Studio, and it all worked. Looks like this is one of the bugs of the environment itself.

    P.S. I sat all evening yesterday thinking, but it turned out to be such garbage ...