Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

nightsonic

Trying to use a class object in a class.

This topic is 6427 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there something special you need to do when doing this? Because it says that the function call needs a class struct union type. The necessary header is included in the class.... I tried using the scope resoloution operater but it did not work. Any help will be appreciated thanks. Sergio

Share this post


Link to post
Share on other sites
Advertisement
It isn''t exactly clear what you mean. Within C++ you have classes and instances of classes. Within some other object oriented languages you have objects and instances of objects. So it isn''t clear what a class object within a class would be. Do you mean declaring a class within a class or using an instance of a class within a class? If you mean using an instance of a class within a class do you mean an instance of the same class or a differant class? A skeleton of what you are trying to do would help a great deal.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!