dealing with bi-directional association
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Suppose I have a dll containing the implementation of a logging tool. I also have another dll containing the implementation of an exception class. Now, I would like any external object INCLUDING an instance of the logging tool to be to throw exceptions using my excpetion class. I also want the Exception class to log every exception thrown into a log file. So, the dilemma is two dlls that depened on each other. Obviously, there are many hackish way of getting around this, but is there a standard and eloquent way of dealing with a situation like this?