Not realy. The problem is that "MyClass" ist a string and MyClass isn't ;)
But I found a solution. Every CRuntimeClass struct contains the members:
LPCSTR m_lpszClassName & CRuntimeClass* m_pNextClass
If I get one CRuntimeClass*, I can handle through the list.
Thanks and sorry...
I have to create an instance of my own MFC deriverd class.
The only thing I know is the classname as a string, this is read out from a XML document.
Are there any methodes like in Java loadClassByName(string) to create a new object?
Thanks in advance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.