Click here to Skip to main content
16,007,779 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MESSAGE_MAPs Pin
Renjith Ramachandran16-Jan-03 8:57
Renjith Ramachandran16-Jan-03 8:57 
GeneralRe: MESSAGE_MAPs Pin
Like2Byte16-Jan-03 9:01
Like2Byte16-Jan-03 9:01 
GeneralProblem passing an object over several DLL's. Pin
Brian van der Beek16-Jan-03 6:25
Brian van der Beek16-Jan-03 6:25 
GeneralRe: Problem passing an object over several DLL's. Pin
AlexO16-Jan-03 6:38
AlexO16-Jan-03 6:38 
GeneralRe: Problem passing an object over several DLL's. Pin
Brian van der Beek16-Jan-03 8:35
Brian van der Beek16-Jan-03 8:35 
GeneralRe: Problem passing an object over several DLL's. Pin
AlexO16-Jan-03 8:57
AlexO16-Jan-03 8:57 
GeneralRe: Problem passing an object over several DLL's. Pin
Brian van der Beek16-Jan-03 20:04
Brian van der Beek16-Jan-03 20:04 
GeneralStrange compile error Pin
ns16-Jan-03 5:51
ns16-Jan-03 5:51 
I had:

void CSearchView::OnButton1() 
{

		CRuntimeClass* pViewClass = RUNTIME_CLASS( <code>CBKView </code>);

	if ( pViewClass == NULL ) return;
 
 	CMultiDocTemplate* pTemplate = theApp.m_pView1Template;
 
 	if ( pTemplate == NULL ) return;
 
 	((CMainFrame*)AfxGetMainWnd())->SwitchView( pTemplate, pViewClass );		
}


and forgot to include BKView.h in the file, so I got:

C:\ATRAIN2\ASampleProjects\ZOrder SWITCH CENTERVIEW\SearchView.cpp(76) : error C2653: 'CBKView' : is not a class or namespace name


I understand the above error, but...

So I put in the line

#include "stdafx.h"
#include "BK.h"
#include "SearchView.h"
<code>#include "bkview.h"</code>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
:

and I'm getting:
SearchView.cpp
c:\atrain2\asampleprojects\zorder switch centerview\bkview.h(28) : error C2143: syntax error : missing ';' before '*'
c:\atrain2\asampleprojects\zorder switch centerview\bkview.h(28) : error C2501: 'CBKDoc' : missing storage-class or type specifiers
c:\atrain2\asampleprojects\zorder switch centerview\bkview.h(28) : error C2501: 'GetDocument' : missing storage-class or type specifiers
Error executing cl.exe.


pointing to :

public:
	CBKDoc* GetDocument();


Appreciate your help,
ns
GeneralRe: Strange compile error Pin
jmkhael16-Jan-03 5:56
jmkhael16-Jan-03 5:56 
GeneralRe: Strange compile error Pin
ns16-Jan-03 6:08
ns16-Jan-03 6:08 
GeneralRe: Strange compile error Pin
jmkhael16-Jan-03 6:14
jmkhael16-Jan-03 6:14 
GeneralRe: Strange compile error Pin
Chris Richardson16-Jan-03 8:03
Chris Richardson16-Jan-03 8:03 
GeneralRe: Strange compile error Pin
ns16-Jan-03 8:09
ns16-Jan-03 8:09 
GeneralRe: Strange compile error Pin
ns16-Jan-03 9:09
ns16-Jan-03 9:09 
GeneralRe: Strange compile error Pin
Chris Richardson16-Jan-03 9:19
Chris Richardson16-Jan-03 9:19 
GeneralRe: Strange compile error Pin
ns16-Jan-03 9:31
ns16-Jan-03 9:31 
GeneralRe: Strange compile error Pin
Chris Richardson16-Jan-03 9:35
Chris Richardson16-Jan-03 9:35 
GeneralProcess's virtual address Pin
Anonymous16-Jan-03 5:06
Anonymous16-Jan-03 5:06 
GeneralRe: Process's virtual address Pin
AlexO16-Jan-03 5:35
AlexO16-Jan-03 5:35 
GeneralRe: Process's virtual address Pin
Wenrich17-Jan-03 5:03
Wenrich17-Jan-03 5:03 
QuestionHow can i draw in a CDialog Pin
willempipi16-Jan-03 4:32
willempipi16-Jan-03 4:32 
AnswerRe: How can i draw in a CDialog Pin
Alvaro Mendez16-Jan-03 4:38
Alvaro Mendez16-Jan-03 4:38 
GeneralRe: How can i draw in a CDialog Pin
Joaquín M López Muñoz16-Jan-03 6:01
Joaquín M López Muñoz16-Jan-03 6:01 
QuestionHooking Question. Am I Dumb? Pin
RickGavin16-Jan-03 4:17
RickGavin16-Jan-03 4:17 
AnswerRe: Hooking Question. Am I Dumb? Pin
jmkhael16-Jan-03 6:06
jmkhael16-Jan-03 6:06 

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.