I have created a class called DisplayManager which inherits from CProcess so I can attach it to the processManager.
<code>
CProcessManager ProcessManager;
SmartPtr<CProcess> m_DisplayManager(new DisplayManager(hWnd));
ProcessManager.Attach(m_DisplayManager);
</code>
Now this code compiles ok, except when I try to call a function of the derived class that does not exist in the base class.
For example:
m_DisplayManager->Init(hWnd, SCREEN_WIDTH, SCREEN_HEIGHT, FULLSCREEN);
Getting the error message, CProcess::Init is not a member of CProcess.
Please help me fix this issue.
Thanks
<code>
CProcessManager ProcessManager;
SmartPtr<CProcess> m_DisplayManager(new DisplayManager(hWnd));
ProcessManager.Attach(m_DisplayManager);
</code>
Now this code compiles ok, except when I try to call a function of the derived class that does not exist in the base class.
For example:
m_DisplayManager->Init(hWnd, SCREEN_WIDTH, SCREEN_HEIGHT, FULLSCREEN);
Getting the error message, CProcess::Init is not a member of CProcess.
Please help me fix this issue.
Thanks