Hi all,
The scenario is as follows.
Application "APP" loads a DLL "dll". Inside this "dll" there are functions which creates and object of type "SOME_CLASS". Now SOME_CLASS is a virtual class (this is provided to you). SO if you want to write your own DLL which can be loaded by APP you should subclass SOME_CLASS.
question: What if I disregard the virtual class SOME_CLASS and write my own class, called SOME_CLASS, which is not virtual. Will there be a problem when the APP tires to access methods of SOME_CLASS ?
in some_class.cpp
Code:
class SOME_CLASS
{
SOME_CLASS(){};
~SOME_CLASS(){};
void SOME_CLASS_FUNC(int){};
}
in main.cpp
Code:
extern "C"
{
SOME_CLASS* create_some_class() { return new SOME_CLASS;}
}