>>>> Line 22:22: can't find anything named CWinApp
CWinApp is an MFC class that is defined in afxwin.h (included by stdafx.h).
>>>> Now I am created the class diagram
Actually, I would need some source code to be able to help you ...
>>>> how to create relationship between them.
You could parse the class definitions as a compiler does... Or you derive all classes by one baseclass and implement a baseclass function, e. g. getClassInfo ..
class BaseClass
{
protected:
vector<string> classNames;
public:
BaseClass() { classNames.push_back("Base
vector<string>& getClassInfo() { return classNames; }
};
In case of multiple inheritance you would need a tree container rather than a vector.
However, that method would create much overhead and it isn't applicable if you need to use foreign class libraries like MFC.
Regards, Alex
Main Topics
Browse All Topics





by: hansol1Posted on 2005-04-16 at 07:28:29ID: 13797435
Now I am created the class diagram but not able to established the reationship between them.can any one tell me how to create relationship between them.