nmaespace and class problem

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

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 on other sites
I can't for legal reasons, but i don't see how the code would be cuase a problem like this.

Share on other sites
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 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 on other sites
this is the best i can give you

http://members.gamedev.net/ryan_zec/C/C2.png
http://members.gamedev.net/ryan_zec/C/C1.png

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 on other sites
sorry about that but those errors have nothing to do with them i had some un commented out code.

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 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.

1. 1
Rutin
38
2. 2
3. 3
4. 4
5. 5

• 11
• 12
• 14
• 9
• 9
• Forum Statistics

• Total Topics
633350
• Total Posts
3011467
• Who's Online (See full list)

There are no registered users currently online

×