Hallo - I have a cpp file and an h file called "polygon.cpp" and "polygon.h" respectively. The h file defines a number of classes, and the cpp file provides the implementation.
At present, I have '#include "polygon.h"' at the top of the cpp file, which seems fine.
However, I'm using the line '#include "polygon.cpp"' at the top of a form's cpp file (say "Form1.cpp" to include these, as this is the only way I can get things to work.
I'm sure this can't be right, as I've never seen an include command for a cpp file - can anyone tell me the correct way to do this?
Cheers,
Douglas JL Common sense is what tells you the world is flat.
At present, I have '#include "polygon.h"' at the top of the cpp file, which seems fine.
However, I'm using the line '#include "polygon.cpp"' at the top of a form's cpp file (say "Form1.cpp" to include these, as this is the only way I can get things to work.
I'm sure this can't be right, as I've never seen an include command for a cpp file - can anyone tell me the correct way to do this?
Cheers,
Douglas JL Common sense is what tells you the world is flat.