I have a CGraph class, which is use in a MDI application to draw line graph on given device context. I use this class by keeping its object in a Document class and taking its pointer in View class and calling CGraph class's functions.
Now I want to make DLL of this CGraph class say CGraphDll, which I will be using to draw graphs. So can I export the CGraph class which is in CGraphDll and get its object in document class, so that can get new object of it whenever i create new document? Or I have to make a new class in the CGraphDll which should handle the multiple instances of the CGraph class?
If my explaination is not clear please ask. I am not able to start with how do I go about this as I am doing DLL part for the first time.
Thanks in advance,