I am trying to show a new toolbar in a MDI application generated with the appwizard in MS Visual c++ 6.0.
I try to use GetActiveDocument() in a handler function in the CMainFrame class, but when the programm executes, it doesn't do what I want. I checked the variables in the debugger and i shows that the pointer returned by GetActiveDocument is NULL. Going deeper, I discoverd that the application cannot evaluate the expression CDocument. Why does this happen even though I have included the appropriate header files in the implementation files?