I have Basic doubt about the class and instantiation details, though I am writing such code.
In my windows forms application, I have two classes inside a namespace.
Namespace=testnamespace
class1 = myform, file=myform.h
class2= mybutton, file=mybutton.h
even though they are under the same namespace (=testnamespace), if I want to instantiate mybutton in myform, I need to #include "mybutton.h" in the top.
Why do I need to include eventhough they belong to same namespace.
I have around 15 classes, as of date, and I find it a hassle. Instead, is there any setup to uniformly call the other classes within same namespace?
in myform.h, If I give
private: testnamespace::mybutton* _mybutton;
it does not accept until I include the *.h file.
Please refer me to sample readme pages or related pages, that may help me understand the basic concepts.
Thanks in advance,