MFC splitter window problems
My program seems to be creating the static splitter itself okay. The problem comes in when I try to create the view by calling:
m_mainSplitter.CreateView( 0, 1, RUNTIME_CLASS(CSplitView),
CSize( 150, cr.Height() ), pContext )
CSplitView is the default view class created by the app wizard (I havn''t touched it, maybe that''s the problem im super new to mfc) the compiler generates the following message:
C:\Split\MainFrm.cpp(83) : error C2653: ''CSplitView'' : is not a class or namespace name
C:\Split\MainFrm.cpp(83) : error C2065: ''classCSplitView'' : undeclared identifier
I''m just trying to get this working before I move on to specialized views.
Thanks;
Prairie
Try adding
class CSplitView;
to the top of your mainframe.h.
Then add the #include path of CSplitView''s header file to the top of mainframe.cpp.
-fel
class CSplitView;
to the top of your mainframe.h.
Then add the #include path of CSplitView''s header file to the top of mainframe.cpp.
-fel
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement