Thank you for your answer.
First of all, do you have serious concerns about using >Cortona 4.1, since version 5.1 is available for download? It > has backward compatibility with 4.1, of course.
I simply can't, it doesn't depend on me.
Note, that "nodes->Add(vpNode, NULL)" never succeeds >because of invalid second argument (it cannot be NULL, so >method call fails with E_POINTER error). According to >COM/OLE rules, when you need to omit an optional argument >for a method, you should pass a VARIANT of type VT_ERROR >with its scode member set to DISP_E_PARAMNOTFOUND.
CComVariant optional(DISP_E_PARAMNOTFOUND, VT_ERROR);
nodes->Add(vpNode, &optional);
Actually "nodes->Add(vpNode, NULL)" always succeeds, but I can't see the new viewpoint in the navigator interface. The object exists, but I can't see it. I tried with your solution and nothing changed :-(
What can I try?
Thank you,
bye