Friend function for class in dll

  c++, dll, friend

Lets say I have the following class in my dll

class Test { private: int x; };

and following function in client side application which uses my dll

void test();

Is there a way to make test function friend for Test class?

Source: Windows Questions C++

LEAVE A COMMENT