Original Post
Hi!
I''ve got another problem. Now I have no problem exporting single simple classes from DLL, but I need something more.
I have a base class like this:
class CBase {
public:
virtual void DoStuff() = 0;
//... other virtual functions
protected
// for simplicity I have just soem static int..
// in real code there is another class here
static int count;
}
Then I have a derived class in DLL. All was nice until I added that static member. The point is that this static is only shared among instances of derived class of this DLL and not in general (I have other classes derived from CBase in my project)... Any idea how to fix this so static member would be shared among all?
Now problem #2. Static member is not a simple int. It''s quite a big class. It calls functions from engine core (uses resource managers, loaders,...). Any way to avoid including all related stuff to this class in DLL?
I hope anyone understands what I''m trying to do here..
ps : sorry for all the typos.
You should never let your fears become the boundaries of your dreams.