Jump to content
  • Advertisement
Sign in to follow this  
3dmodelerguy

nmaespace and class problem

This topic is 4751 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

NOTE I HAVE VISUAL ASSIST ok here is my code:
namespace NParticleEngine
{
	class CEmitter
	{
	public:
		CEmitter();
		~CEmitter();
	};
}


namespace NParticleEngine
{
	class CParticle
	{
	public:
		CParticle();
		~CParticle();
	};
}


now when in main and i do : NParticleEngine::CParticle *p = new NParticleEngine::CParticle(); p-> i get the list of stuff in the CEmitter class but when i do: NParticleEngine::CEmitter *p = new NParticleEngine::CEmitter(); p-> all i get is the list of classes in NParticleEngine which are CEmitter and CParticle. is there anything that can be cuasing this?

Share this post


Link to post
Share on other sites
Advertisement
I don't see anything wrong with this, that's why i want to see it in the main code, not everything, just where you use those.

Share this post


Link to post
Share on other sites
are you talking about auto complete in Visual Studio?

I had the same problem a while ago, I can't remember if VS has complete autocomplete support for namespaces. Try a complete clean/re-build see if that make a dif.

Share this post


Link to post
Share on other sites
Seeing as you have a bunch of compiler errors in the code, it is likely that Visual Assist is confused or its database is out-of-date.

Share this post


Link to post
Share on other sites
The problem is, your .ncb file is likely out of date, and because you can't build the solution, you can't bring it up to date.

If you could do a clean build successfully, your .ncb file would be brought up to date.

Share this post


Link to post
Share on other sites
As I said before those errors have nothing to do with my problem the solution build fine and i have done a clean build about 10 times now.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!