I want to create a instance of class, but it's only a "private" class in this project, so i can't use "CreateObject".

and i can't know which class i want to create from. it's like this:

private function createNewInstance(obj as object) as object

end function

i want this function return a new object like obj, but VB6 does not support reflection like .Net, so how can i do?