Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Game Development - Project Linking

Name: Anonymous 2010-06-28 15:28

I've got an issue on my hands in regards to c++ working in visual studio 2008, I was wondering if any of you would have any suggestions for me.

The Goal:
I want to have a core engine that is both reusable, and provides shared functionality for my game engine, and my level editor. My current approach is to separate them into separate projects and to have a "program" class in the core project, and derived class in the editor project.

My Progress:
So far, I've added the Editor project and made it dependent of the Core project. I've also added the source directory of the core project as an additional include directory of the editor project (properties>c++>additional include directories)

The Issue:
Although I can see project.h from the editor class, and get no errors including the project.h or inheriting from the project class, I get issues accessing any members or methods, or using any 'this' calls, such as '__super::'. Not being able to use super really defeats a great deal of the functionality outlined in the program class, so I'm sure you can see how this is quite a pickle I'm in.

Any thoughts, suggestions, or places you think I should look?

Name: Anonymous 2010-06-28 17:05

Oh come on guys, don't be so grumpy all the time.

I'd say that the problem stems from using C++, and more precisely - you not understanding C++. It's widely thought of as a bloated and convoluted language, and it has reserved that reputation.
How are you inheriting the core program? I'm sure that C++ needs additional keywords when inheriting, so that it knows what to inherit (though that might be unrelated to the problem; I dunno, I don't use C++).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List