Click here to Skip to main content
15,910,787 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Displaying text on a Dialog Pin
Hamid_RT21-Jun-07 20:25
Hamid_RT21-Jun-07 20:25 
GeneralRe: Displaying text on a Dialog Pin
Suneet.0321-Jun-07 21:32
Suneet.0321-Jun-07 21:32 
AnswerRe: Displaying text on a Dialog Pin
zhang80060521-Jun-07 21:12
zhang80060521-Jun-07 21:12 
AnswerRe: Displaying text on a Dialog Pin
sps-itsec4621-Jun-07 21:14
sps-itsec4621-Jun-07 21:14 
GeneralRe: Displaying text on a Dialog Pin
Suneet.0321-Jun-07 22:29
Suneet.0321-Jun-07 22:29 
GeneralRe: Displaying text on a Dialog Pin
sps-itsec4622-Jun-07 0:14
sps-itsec4622-Jun-07 0:14 
AnswerRe: How to open message Queue with send and Receive access mode Pin
SandipG 21-Jun-07 20:49
SandipG 21-Jun-07 20:49 
Questionerror coming in class derived from CListVeiw Pin
neha.agarwal2721-Jun-07 19:35
neha.agarwal2721-Jun-07 19:35 
Hi all,

i am making a sdi application in which i have made a static splitter control.
i have made 2 views to allocate to parts made by splitter control.i have derived those two classes from CListView and when i m using them in my code like this
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
	if (!m_wndSplit.CreateStatic(this,1,2))
	{
		TRACE(_T("failed to create the splitter"));
		return FALSE;
	}

	if (!m_wndSplit.CreateView(0,0,RUNTIME_CLASS(CLeftList),CSize(225, 500),pContext))
	{
		TRACE(_T("Failed to create view in first pane"));
		return FALSE;
	}

	if (!m_wndSplit.CreateView(0,1,RUNTIME_CLASS(CRightList),CSize(225, 500),pContext))
	{
		TRACE(_T("failed to create view in second pane"));
		return FALSE;
	}

	return TRUE;
}


in my mainframe class it gives an error...
error C2504: 'CListView' : base class undefined
E:\Documents and Settings\Neha\Desktop\testapp\LeftList.cpp(17) : error C2440: 'return' : cannot convert from 'class CLeftList *' to 'class CObject *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\Documents and Settings\Neha\Desktop\testapp\LeftList.cpp(17) : error C2653: 'CListView' : is not a class or namespace name

and many more

what is the problem??

can anybody help me in this....

Thanks in advance
AnswerRe: error coming in class derived from CListVeiw Pin
Rajkumar R21-Jun-07 19:58
Rajkumar R21-Jun-07 19:58 
GeneralRe: error coming in class derived from CListVeiw Pin
neha.agarwal2721-Jun-07 20:06
neha.agarwal2721-Jun-07 20:06 
GeneralRe: error coming in class derived from CListVeiw Pin
neha.agarwal2721-Jun-07 20:41
neha.agarwal2721-Jun-07 20:41 
AnswerRe: error coming in class derived from CListVeiw Pin
Rajkumar R21-Jun-07 22:33
Rajkumar R21-Jun-07 22:33 
QuestionHow to OR Arrays Without loop Pin
SandipG 21-Jun-07 18:40
SandipG 21-Jun-07 18:40 
AnswerRe: How to OR Arrays Without loop Pin
Cyrilix21-Jun-07 18:43
Cyrilix21-Jun-07 18:43 
GeneralRe: How to OR Arrays Without loop Pin
SandipG 21-Jun-07 18:48
SandipG 21-Jun-07 18:48 
GeneralRe: How to OR Arrays Without loop Pin
Cyrilix21-Jun-07 20:05
Cyrilix21-Jun-07 20:05 
GeneralRe: How to OR Arrays Without loop Pin
SandipG 21-Jun-07 20:23
SandipG 21-Jun-07 20:23 
GeneralRe: How to OR Arrays Without loop Pin
Mark Salsbery22-Jun-07 6:26
Mark Salsbery22-Jun-07 6:26 
GeneralRe: How to OR Arrays Without loop Pin
Mark Salsbery22-Jun-07 6:34
Mark Salsbery22-Jun-07 6:34 
Questioncopy a file bit -by- bit Pin
Manmohan2921-Jun-07 17:15
Manmohan2921-Jun-07 17:15 
AnswerRe: copy a file bit -by- bit Pin
Mark Salsbery21-Jun-07 17:57
Mark Salsbery21-Jun-07 17:57 
QuestionHow to use GDI+ function Bitmap( Class type, String resource ) Pin
Chen-XuNuo21-Jun-07 16:43
Chen-XuNuo21-Jun-07 16:43 
AnswerRe: How to use GDI+ function Bitmap( Class type, String resource ) Pin
Sameerkumar Namdeo21-Jun-07 16:59
Sameerkumar Namdeo21-Jun-07 16:59 
AnswerRe: How to use GDI+ function Bitmap( Class type, String resource ) [modified] Pin
Mark Salsbery21-Jun-07 17:56
Mark Salsbery21-Jun-07 17:56 
QuestionProblem with Newline in Tooltips Pin
Avril-Sun21-Jun-07 16:01
Avril-Sun21-Jun-07 16:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.