Link to home
Start Free TrialLog in
Avatar of jmartins71
jmartins71

asked on

How to get doc pointer in a view

In CView derived class i need to get a pointer to the associated document. How to do it?
Avatar of Bridge
Bridge

GetDocument()
Avatar of jmartins71

ASKER

Thanks Bridge but i need more information.

My cview derived class is CSpyLoaderView
My cdocument derived class is CSpyLoaderDoc

in CSpyLoaderView i have the following inline function

CSpyLoaderDoc* GetDocument() {return (CSpyLoaderDoc*)GetDocument();}

When i call GetDocument i trigger a stack overflow exception.
Is the casting incorrect?
Can you give me a line.
ASKER CERTIFIED SOLUTION
Avatar of Answers2000
Answers2000

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Answer2000