I have a extension DLL which has Frame,Doc and View which is exported and Iam adding it to doctemplate in my MDI application.

Now When Iam trying to create new frame using CreateNewFrame(From MDI app) method it returns exception saying that "Improper argument"
The pDoc pointer is valid.

Please help me on this.