How to add class to openframeworks project in VS2012

Posted by Mr Bell on Stack Overflow See other posts from Stack Overflow or by Mr Bell
Published on 2012-07-11T15:13:58Z Indexed on 2012/07/11 15:15 UTC
Read the original article Hit count: 403

I am normally a C# guy but trying to get into c++.

I made myself a new openframeworks project by copying and pasting one of the example projects and then renaming everything to my project name. (If there is an easier way, I would love to hear it)

This project has the .cpp and .h files in a sub folder called "src" which are in turn organized into virtual folders (filters???) in visual studio.

How can I add a class to this project from within visual studio?

If I right click on the src filter in the solution explorer and hit add class. It creates the class files at the root of the project not in the src folder. I mean it does this both in the solution explorer and where it physically places the files. This is a problem because I can't include my class files in the rest of my app, presumably because they aren't in the same folder

What is the proper way to add a class file?

© Stack Overflow or respective owner

Related posts about c++

Related posts about visual-studio-2010