in visual c# i used to resolve namespaces by right clicking on the class name, do you know how to do the same in c++?

thanks.

resolved with the using clause, such as using namespace std; . Alternatively you can just put the namespace when you declare the object, such as std::string mystring; or mynamespace::myobj obj;

ok but what if i dont know which namespace that class belongs to? for c# visual studio shows you the probable namespace options for that class, i want something like that.

You can find out what namespace it is by reading the header file in which it is declared or reading the programmer's documentation (for example looking it up in MSDN if it is a win32 api function).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.