load dll

MyDll.dll returns instantiated class:
abstractclass.h:
void* ObtainInstantiatedClass();
.cpp:
void* ObtainInstantiatedClass()
{
return static_cast< void* > (new square);
}

how to load and return something else like circle instead of square from a calling mfc app.exe?.
[312 byte] By [teen1] at [2007-11-19 22:48:36]
# 1 Re: load dll
like to return or obtain different objects (circle, square, etc.).
teen1 at 2007-11-10 23:32:55 >