In visual c++, how to move a class to it's own file?

195 Views Asked by At

I have multiple classes within one file and within another class. I need to pull one of the classes out and put in it's own file. I tried the right click: "Add class" option... but get the ERROR "Class 'xxx' is either invalid or already implemented in the selected source file." If I try a different name it works... but I need the same name as before.

1

There are 1 best solutions below

0
On

Make a new file, Ctrl+X, Ctrl+V - the simplest solution