When I try accesing private members of a class using friend functions after including the concept of templates in visual basic c++, the compiler shows me an error message that friend functions cannot access the private members declared in class.

Please help.....

i think that you mean c++ on visual studio

what ever i think that if i see the code will be better

anyway frien function declaration will be included in the class and the definition will be outside the class