Hi all.
I have a class with virtual functions.
This class lives in DLL. In main program I use this class by obtaining
his pointer (by function that's exports from dll).
class CfromDLL
{
...
virtual int Foo();
...
};
CfromDLL* GetAPI();
I want use a std::auto_ptr (std::auto_ptr<CfromDLL> pnt) on this class.
And I get the linkers errors.
But if I use an explicit pointer (CfromDLL *pnt) - it's all right.
Why I have the linkers crash with auto_ptr ?
PS. Don't tell me about FAQ, because I can't go in Interet now.