Thursday, April 10, 2008

DECLARE_DYNCREATE problem

When you want a class, who will dynamically created by CreateObject(), then you must have a default constructor. Otherwise you got “Compiler Error C2512 - no appropriate default constructor available”.

No comments: