William DePalo [MVP VC++] wrote:
"Ernesto Díaz" <je****@vianney.com.mx> wrote in message
news:u4**************@TK2MSFTNGP10.phx.gbl... I need to instance a class at runtime, at runtime a can get the name
in a string, i would like to know if its possible to instance the class
at
runtime with the name in a string.
Yes, you can. Details are here:
http://msdn.microsoft.com/library/de...tancetopic.asp
IF you're talking about a managed class, that is. If you're looking to
instantiate a native class based on the contents of a string, you have to
build some kind of object factory with creators registered by name - native
C++ provides no such support.
-cd